{
 "matcher": "0.3.0",
 "target": {
  "recall": 0.9,
  "precision": 0.9
 },
 "met": true,
 "params": {
  "nameBonus": 0.3,
  "unknown": 0.5,
  "boost": 2,
  "offTopic": 0.5,
  "detail": 0.5,
  "threshold": 0.4,
  "margin": -0.1,
  "weakFloor": 0.25
 },
 "tuning": {
  "known_matches": 419,
  "non_matches": 2291,
  "found": 402,
  "suggestions": 406,
  "wrong": 4,
  "recall": 0.9594,
  "precision": 0.9901,
  "f1": 0.9745,
  "by_source": {
   "NHANES": {
    "known_matches": 245,
    "non_matches": 546,
    "found": 245,
    "suggestions": 245,
    "wrong": 0,
    "recall": 1,
    "precision": 1
   },
   "dbGaP": {
    "known_matches": 174,
    "non_matches": 1745,
    "found": 157,
    "suggestions": 161,
    "wrong": 4,
    "recall": 0.9023,
    "precision": 0.9752
   }
  }
 },
 "heldout": {
  "known_matches": 4,
  "non_matches": 383,
  "found": 4,
  "suggestions": 4,
  "wrong": 0,
  "recall": 1,
  "precision": 1,
  "counted": "matches shown by default (score at or above the threshold)",
  "with_weak_matches": {
   "known_matches": 4,
   "non_matches": 383,
   "found": 4,
   "suggestions": 6,
   "wrong": 2,
   "recall": 1,
   "precision": 0.6667
  }
 },
 "fresh_set": {
  "fixed": "2026-11-30, before any matching change",
  "files": 6,
  "studies": [
   "phs000252",
   "phs001078",
   "phs003636",
   "phs004252",
   "phs004702"
  ],
  "datasets": [
   "pht001271",
   "pht005744",
   "pht005745",
   "pht015306",
   "pht017594",
   "pht018042"
  ]
 },
 "variables": {
  "tuning": {
   "scored": 2710,
   "left_out": 134
  },
  "heldout": {
   "scored": 387,
   "left_out": 16
  }
 },
 "history": [
  {
   "run": 1,
   "date": "2026-11-30",
   "heldout": "odd half of the key (6 NHANES cycles, MESA Exam 1, odd dbGaP studies)",
   "recall": 0.8927,
   "precision": 0.8097,
   "known_matches": 205,
   "suggestions": 226,
   "note": "Tuned with two dbGaP dictionaries (ARIC HHXB and RHXA). Its dbGaP suggestions were often wrong, so two more tuning-half dictionaries (ARIC derived variables, Jackson Heart Study visit 1) were added and settings re-tuned; held-out errors were not read."
  },
  {
   "run": 2,
   "date": "2026-11-30",
   "heldout": "odd half of the key, as run 1",
   "recall": 0.8878,
   "precision": 0.963,
   "known_matches": 205,
   "suggestions": 189,
   "note": "Every suggestion counted, including weak ones. Its dbGaP misses (status and age at menopause in a study's own words) led to run 3, which tunes on the whole key and is scored on a fresh set."
  },
  {
   "run": 3,
   "date": "2026-11-30",
   "heldout": "fresh set: 6 dbGaP dictionaries from 5 new studies",
   "recall": 1,
   "precision": 1,
   "known_matches": 4,
   "suggestions": 4,
   "note": "Tuned on the whole key of runs 1 and 2. Counts only matches shown by default; weak matches are in heldout.with_weak_matches. Rescored with each later matcher."
  },
  {
   "run": 4,
   "date": "2026-12-01",
   "heldout": "whole data dictionaries of 4 fresh cohorts (CHS phs000287, GENOA phs001238, HCHS/SOL phs000810, CFS phs000284): 61 files, 10147 variables",
   "cohorts": 4,
   "variables": 10147,
   "recall": 0.4348,
   "precision": 0.726,
   "known_matches": 46,
   "suggestions": 73,
   "counted": "Every match shown by default. A suggestion is right, related (on the topic, but no recode makes it the element) or wrong by a hand key fixed before any matcher ran on these files; precision counts only right ones. known_matches and recall count, per cohort, the core elements the key has a right variable for.",
   "before": {
    "matcher": "0.2.0",
    "found": 19,
    "in_key": 46,
    "suggestions": 121,
    "right": 54,
    "related": 48,
    "wrong": 19,
    "precision": 0.4463
   },
   "after": {
    "matcher": "0.3.0",
    "found": 20,
    "in_key": 46,
    "suggestions": 73,
    "right": 53,
    "related": 13,
    "wrong": 7,
    "precision": 0.726
   },
   "note": "The 0.2.0 baseline was scored first. Matcher 0.3.0 was then tuned on the WHI, MESA, CARDIA and SWAN dictionaries and the key of runs 1 to 3 only, and scored once on these files. Run 2's held-out half, scored leaving each study out, went from 186 to 188 of 205 known matches found, with 3 wrong both times."
  }
 ],
 "split": "Tuning: all of the key used by runs 1 and 2 (12 NHANES reproductive health cycles, NHANES medical conditions 2017-2018, the crosswalk's dbGaP studies, ARIC, Jackson Heart Study and MESA Exam 1), each cycle or study scored against the others. Held out: the fresh set, never used for tuning.",
 "key": "Known matches are the crosswalk's checked mappings: NHANES variables per element and cycle, and dbGaP variables of the two hand-reviewed concepts (menopausal status, age at menopause); the fresh set is labelled by hand with the same two concepts. Rule-tagged dbGaP concepts and variables that may hold a core question the key does not cover are left out of scoring."
}
