HYPERGAMYGitHub

v1.6.1 · local-first · no account

Who says yes.And who you'd actually end up with.

A small neural network trained on 8,378 real speed dates. It estimates your chance of a mutual yes, maps the packages you can reach, and puts the measured couple market next to it. Every number is trained, measured, or explicitly labelled a research prior.

dates trained on
8,378
map 5-fold CV
77.4%
match base rate
16.5%

Cross-validated on dates the model never saw. An always-guess baseline is printed next to every accuracy — no number stands alone.

The hypergamy map

P(he says yes) × P(she says yes)

Full annotated map
Focus or hover a cell to read its chance. Click to pin a package pair.

Best cells — the ink ring is the highest mutual chance in each man's row; the blue ring is the highest in each woman's column. They are grid maxima, not your result.

his best mutual cell her best mutual cell
Rows are men, columns women. Switch between the mutual chance and either direction. The rings always mark the best mutual cell for that row or column. The ten rungs are packages — looks, age and income climb together — not ten real people.

What it estimates

One profile in. Four honest outputs.

The calculator answers the questions the data can actually support, and keeps the weak answers visibly weak instead of turning them into a single confident score.

Chance of a mutual yes

Your yes and their yes are predicted separately, then multiplied. The market side is the weaker model, and the UI prints both directions instead of hiding it.

The package you reach best

Your own arrow on the map plus a reaching score from −10 to +10: the gap between what you offer and what you look for.

Competitor rank

Where your age, income, goal and self-ratings sit in the study pool, compared against the date data rather than an opinion about your worth.

Reach bands

Likely at 60% or more of your best cell, stretch at 25–60%, hard below 25%. A model output, not a promise about any real person.

01

Answer what you know

About twenty inputs, with optional fields you can leave blank. Nothing is required beyond age and income.

02

The router picks the weights

Age, mode and gender decide which committed model runs — including the 18–25 average.

03

Read the basis, not just the number

The map, partner panel and calibration block each carry a trained, measured or research label.

The map is the product.

Rows are men, columns are women, and every one of the 100 cells is a real forward pass:P(he says yes) × P(she says yes). The diagonal structure comes from the ten rungs — looks, age and income climb together — not from a decorative gradient.

  • The arrows are average behaviour: each man points at his best column, each woman at her best row.
  • The rings mark those best cells: one per row for him, one per column for her. They are grid maxima, not your personal result.
  • Your arrow is drawn from your own profile, next to the cell you reach best.
  • The bands are relative to your own best cell, so “likely” never means “guaranteed”.
The ten package definitions
packagelooksageincome
13.0 / 1024$21.0k
23.8 / 1025.1$25.5k
34.6 / 1026.2$30.0k
45.3 / 1027.3$34.5k
56.1 / 1028.4$39.0k
66.9 / 1029.5$43.5k
77.7 / 1030.6$48.0k
88.4 / 1031.7$52.5k
99.2 / 1032.8$57.0k
1010.0 / 1033.9$61.5k

Package 10 is a 34-year-old on about $61.5k, rated 10/10 on looks — the top rung the model builds, not “the perfect woman”, and not a score out of ten.

likely60% or more of your best cell
stretch25–60% of your best cell
hardbelow 25% of your best cell

Why not one score?

A single percentage hides which model produced it. Here the trained decision, the measured couple market and the research priors stay separate — because they answer different questions and have very different error bars.

The paper trail

Every number has a provenance.

There are only three kinds of numbers in this project. If a claim does not fit one of them, it does not ship.

trained

Fitted on real decisions

81.1% ± 2.1 five-fold CV for the men's taste model, against a 50.1% always-guess baseline. Committed weights run without retraining and reproduce the published CVs.

measured

Counted, not modelled

250,172 ACS couples and 6,262 NHANES heights. Descriptive context only — the couple data is never fed to the date-acceptance network.

research

Published, capped, cited

Adult-layer effects come from named papers in adult.py and are capped at ±8 points, so they cannot outvote the networks. Never described as trained.

modelinputs5-fold CValways-guesslift
taste, men1681.1% ± 2.150.1%+31.0
taste, women1680.3% ± 1.865.8%+14.5
market, men866.1% ± 2.561.5%+4.6
market, women863.9% ± 2.055.8%+8.1
dyad, men2080.9% ± 1.150.1%+30.8
map / base1077.4% ± 1.257.0%+20.4

Five-fold cross-validation on dates the model never saw. Holdout accuracy, feature sets and the full per-model table live in the README. The market model is weaker because a stranger's yes is mostly noise — +5 to +8 points, not +30.

The measured part

Who you'd most plausibly end up with.

Not a forecast — the realised-couple distribution for people with your age and income, from the 2023 American Community Survey. These are couples who actually formed.

22.0 median partner age, for an 18-year-old on $4,500
$14,000median partner income
0.0 yrsmedian age gap
7.4 / 10package-ladder position

Measured, then left alone

The panel shows the median partner age, income, age gap, same-ethnicity and same-education shares for your ACS cell, plus a deterministic 25th/50th/75th percentile grid. Same-education sits at 53.8% in that cell and same ethnicity at 73.2%; overall same-education is 47.5%.

The candidates carry no dyad score. The ACS records no partner self-ratings or stated importance, and imputing them produced 52% mutual chances against a 16.5% base rate — an artefact, so the scoring was removed.

No data shipped here follows a person to a lifetime partner, so “lifetime” is not claimed. HCMST is the right panel for that question; it is cited, not trained.

The 7.4/10 is the median self-rating of real participants of that gender, mapped onto the package ladder — measured from the speed dates, not modelled from the ACS couples.

Run it

On your machine, in one terminal.

The calculator is a stdlib Python desktop app. No browser, no account, no API key, no upload. The first data build downloads the public speed-dating files and joins them locally.

~/h-AI-pergamy
# clone and install
git clone https://github.com/thijnperd/h-AI-pergamy.git
cd h-AI-pergamy
python -m pip install -r requirements.txt

# build the joined dataset, then open the desktop calculator
python data/build.py
python gui.py

# legacy browser UI only; the default above needs no browser
python gui.py --serve

# optional: regenerate the map as svg + png
python hypergamy_map.py

Local by construction

The desktop app does all maths on your machine and there is no analytics script. Your profile never leaves the machine.

Also from the CLI

  • python profile.py --demo
  • python partner.py --demo
  • python adult.py
  • python -m unittest discover -s tests -v

Requirements

Python with pip, NumPy and Tk. Tk ships with most Windows/macOS Python installs; on Debian/Ubuntu add python3-tk. No web framework, no database, no build step.

The legacy browser result panel at phone width: 34.0% mutual yes, 62.0% they say yes, 54.8% you say yes, reaching +1.0, and the likes ranking.
A real result from the legacy browser calculator (demo profile, phone-width layout). The default desktop app shows the same engine in Summary/Map/Details tabs and also runs on your machine.

Data

Named sources, or nothing.

sourcesizeused for
Speed Dating Experiment, Columbia 2002–048,378 datesTrained targets: dec, dec_o, match
ACS 2023 1-year PUMS (CA, TX, FL, NY, IL)250,172 couplesMeasured partner age, income, gap, same ethnicity/education
NHANES Aug 2021–Aug 20236,262 adultsMeasured height percentiles
OKCupid profiles (JSE)59,946Descriptive height/body priors — no date-outcome label, so never trained
HCMSTcitedThe right panel for lifetime stability; not shipped, not trained

Raw downloads are gitignored. The small priors JSON files are committed so the calculator runs after a clone; the builders reproduce them from the public sources.

Why OKCupid is not a training set

The public OKCupid file has 59,946 profiles but no column for a date decision or a mutual match. A supervised acceptance model needs that label; fitting one anyway would mean inventing the target. It is used only for descriptive height and body priors, never as a yes/no example.

HCMST has real relationship outcomes, not date decisions, and is cited rather than shipped. The public “online dating matches” Kaggle dataset was checked and excluded because it is synthetic. No additional real, redistributable profile-to-match dataset was found for this release, so the acceptance networks remain trained only on the 8,378 real speed dates.

Limits

What it refuses to claim.

Is this a dating app or a coach?

No. It is a statistical toy with a published paper trail: a local calculator, not advice about a specific person and not a matchmaking service.

Can it predict my lifetime partner?

No. The speed-dating study ends at “second date?”, and no dataset shipped here follows a person to a partner. The partner panel reports ACS realised couples for your age and income; HCMST is the correct panel for longitudinal stability, and it is cited rather than simulated.

Why is the “will they say yes” model weaker?

Because a stranger's decision is mostly noise. The market models clear their baselines by +4.6 to +8.1 points, while the taste models — whether you say yes — clear theirs by +14.5 to +31.0. The UI shows both rather than pretending they are equally reliable.

Why isn’t OKCupid trained with the speed dates?

The public file has 59,946 profiles but no date-decision or mutual-match label. Training it as a yes/no model would mean inventing the outcome. It supplies descriptive height and body priors only; the acceptance networks use the 8,378 real dates.

Does it work for same-gender couples?

The trained date models run, but the measured couple context returns “not available”: the ACS priors shipped here are opposite-sex couples only. The app says that instead of silently substituting a different population.

What happens to the adult-layer answers?

They are labelled research priors, cited to published studies and capped at ±8 points. There is no public outcome data for kinks or body measurements, so those effects never pretend to be trained.

Does anything leave my computer?

No. The GUI is served by Python's standard library on 127.0.0.1, with no telemetry and no external calls at compute time. The only network access is the one-time public dataset download in data/build.py.

Read the source