@mailwoman/registry 5.8.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/address-key.d.ts +1 -1
- package/out/geocode-handler.d.ts +2 -2
- package/out/geojson.d.ts +1 -1
- package/out/index.d.ts +10 -10
- package/out/ingest.d.ts +1 -1
- package/out/learned-scorer.d.ts +2 -2
- package/out/learned-scorer.js +1 -1
- package/out/map-html.d.ts +1 -1
- package/out/reconcile.d.ts +2 -2
- package/out/reconcile.js +1 -1
- package/out/resolve.d.ts +1 -1
- package/out/tools/coverage-reconciliation.d.ts +51 -0
- package/out/tools/coverage-reconciliation.d.ts.map +1 -0
- package/out/tools/coverage-reconciliation.js +166 -0
- package/out/tools/coverage-reconciliation.js.map +1 -0
- package/out/tools/cross-dataset-correlation.d.ts +49 -0
- package/out/tools/cross-dataset-correlation.d.ts.map +1 -0
- package/out/tools/cross-dataset-correlation.js +340 -0
- package/out/tools/cross-dataset-correlation.js.map +1 -0
- package/out/tools/cross-source-threshold-sweep.d.ts +52 -0
- package/out/tools/cross-source-threshold-sweep.d.ts.map +1 -0
- package/out/tools/cross-source-threshold-sweep.js +328 -0
- package/out/tools/cross-source-threshold-sweep.js.map +1 -0
- package/out/tools/dedup-ceiling.d.ts +21 -3
- package/out/tools/dedup-ceiling.d.ts.map +1 -1
- package/out/tools/dedup-ceiling.js +16 -30
- package/out/tools/dedup-ceiling.js.map +1 -1
- package/out/tools/eval-geocoder.d.ts +45 -0
- package/out/tools/eval-geocoder.d.ts.map +1 -0
- package/out/tools/eval-geocoder.js +14 -0
- package/out/tools/eval-geocoder.js.map +1 -0
- package/out/tools/geocoder-namesake-probe.d.ts +26 -0
- package/out/tools/geocoder-namesake-probe.d.ts.map +1 -0
- package/out/tools/geocoder-namesake-probe.js +59 -0
- package/out/tools/geocoder-namesake-probe.js.map +1 -0
- package/out/tools/geocoder-vs-provided-coords.d.ts +38 -0
- package/out/tools/geocoder-vs-provided-coords.d.ts.map +1 -0
- package/out/tools/geocoder-vs-provided-coords.js +132 -0
- package/out/tools/geocoder-vs-provided-coords.js.map +1 -0
- package/out/tools/gold-set-sample.d.ts +22 -3
- package/out/tools/gold-set-sample.d.ts.map +1 -1
- package/out/tools/gold-set-sample.js +17 -32
- package/out/tools/gold-set-sample.js.map +1 -1
- package/out/tools/index.d.ts +36 -0
- package/out/tools/index.d.ts.map +1 -0
- package/out/tools/index.js +36 -0
- package/out/tools/index.js.map +1 -0
- package/out/tools/learned-scorer-clustering-eval.d.ts +54 -0
- package/out/tools/learned-scorer-clustering-eval.d.ts.map +1 -0
- package/out/tools/learned-scorer-clustering-eval.js +368 -0
- package/out/tools/learned-scorer-clustering-eval.js.map +1 -0
- package/out/tools/learned-scorer-crossstate-eval.d.ts +43 -0
- package/out/tools/learned-scorer-crossstate-eval.d.ts.map +1 -0
- package/out/tools/learned-scorer-crossstate-eval.js +305 -0
- package/out/tools/learned-scorer-crossstate-eval.js.map +1 -0
- package/out/tools/learned-scorer-eval.d.ts +59 -0
- package/out/tools/learned-scorer-eval.d.ts.map +1 -0
- package/out/tools/learned-scorer-eval.js +450 -0
- package/out/tools/learned-scorer-eval.js.map +1 -0
- package/out/tools/matcher-scale.d.ts +17 -3
- package/out/tools/matcher-scale.d.ts.map +1 -1
- package/out/tools/matcher-scale.js +14 -30
- package/out/tools/matcher-scale.js.map +1 -1
- package/out/tools/nppes-dedup-benchmark.d.ts +75 -0
- package/out/tools/nppes-dedup-benchmark.d.ts.map +1 -0
- package/out/tools/nppes-dedup-benchmark.js +846 -0
- package/out/tools/nppes-dedup-benchmark.js.map +1 -0
- package/out/tools/train-cross-gbt.d.ts +58 -0
- package/out/tools/train-cross-gbt.d.ts.map +1 -0
- package/out/tools/train-cross-gbt.js +324 -0
- package/out/tools/train-cross-gbt.js.map +1 -0
- package/out/tools/train-gbt.d.ts +51 -0
- package/out/tools/train-gbt.d.ts.map +1 -0
- package/out/tools/train-gbt.js +268 -0
- package/out/tools/train-gbt.js.map +1 -0
- package/out/tools/train-org-cross-gbt.d.ts +51 -0
- package/out/tools/train-org-cross-gbt.d.ts.map +1 -0
- package/out/tools/train-org-cross-gbt.js +296 -0
- package/out/tools/train-org-cross-gbt.js.map +1 -0
- package/out/tools/txhhsc-to-oarow.d.ts +14 -3
- package/out/tools/txhhsc-to-oarow.d.ts.map +1 -1
- package/out/tools/txhhsc-to-oarow.js +44 -52
- package/out/tools/txhhsc-to-oarow.js.map +1 -1
- package/out/tools/viz/cross-dataset-map.d.ts +23 -4
- package/out/tools/viz/cross-dataset-map.d.ts.map +1 -1
- package/out/tools/viz/cross-dataset-map.js +42 -46
- package/out/tools/viz/cross-dataset-map.js.map +1 -1
- package/out/tools/viz/geocode-first-surface.d.ts +17 -4
- package/out/tools/viz/geocode-first-surface.d.ts.map +1 -1
- package/out/tools/viz/geocode-first-surface.js +71 -78
- package/out/tools/viz/geocode-first-surface.js.map +1 -1
- package/out/tools/viz/render-map.d.ts +17 -3
- package/out/tools/viz/render-map.d.ts.map +1 -1
- package/out/tools/viz/render-map.js +26 -26
- package/out/tools/viz/render-map.js.map +1 -1
- package/out/tools/viz/render.d.ts +21 -3
- package/out/tools/viz/render.d.ts.map +1 -1
- package/out/tools/viz/render.js +43 -39
- package/out/tools/viz/render.js.map +1 -1
- package/out/tools/viz/source-provenance-map.d.ts +24 -5
- package/out/tools/viz/source-provenance-map.d.ts.map +1 -1
- package/out/tools/viz/source-provenance-map.js +53 -62
- package/out/tools/viz/source-provenance-map.js.map +1 -1
- package/out/tools/viz/yardstick-figure.d.ts +11 -3
- package/out/tools/viz/yardstick-figure.d.ts.map +1 -1
- package/out/tools/viz/yardstick-figure.js +68 -73
- package/out/tools/viz/yardstick-figure.js.map +1 -1
- package/package.json +50 -10
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* The #617 NPPES dedup benchmark — the measurable proof of the record-matcher hypothesis.
|
|
7
|
+
*
|
|
8
|
+
* NPPES is NPI-keyed, so the NPI is a ground-truth entity id. We build a deliberately varied
|
|
9
|
+
* multi-record set per NPI from REAL data — the registry's primary record, each alternate
|
|
10
|
+
* organization name (`nppes_other-names`, NAME drift at the same place), and the mailing address
|
|
11
|
+
* where it differs from the practice location (ADDRESS variation) — then run the matcher BLIND to
|
|
12
|
+
* the NPI (geocode → block → Fellegi-Sunter + EM → cluster) and score the recovered clusters
|
|
13
|
+
* against the NPI grouping (pairwise P/R/F1 + adjusted Rand).
|
|
14
|
+
*
|
|
15
|
+
* Honest reading (per the epic): NPI-as-truth is CONSERVATIVE. A cluster that merges two NPIs is a
|
|
16
|
+
* candidate "same entity, two NPIs" surfaced for review, not an error we adjudicate; and a single
|
|
17
|
+
* NPI split across two genuinely-distant addresses is geo-first behaving correctly, counted here
|
|
18
|
+
* as a recall miss. We resolve and report; interpretation is the consumer's.
|
|
19
|
+
*
|
|
20
|
+
* Sample: a tractable, variation-rich cut — providers in one state (default TX) that have ≥1
|
|
21
|
+
* alternate name, so every entity has ≥2 records and the dedup is non-trivial. Streams the 4.8 GB
|
|
22
|
+
* registry via `streamRows` (#616), so nothing loads whole.
|
|
23
|
+
*
|
|
24
|
+
* Run: `mailwoman registry scorer-eval nppes-benchmark [--state TX] [--max-npis 300]
|
|
25
|
+
* [--wof <admin.db>] [--data-root <dir>] [--no-train-em]
|
|
26
|
+
* [--out-md docs/articles/evals/<date>-nppes-dedup-benchmark.md]`
|
|
27
|
+
*/
|
|
28
|
+
import type { EvalGeocodeStream, EvalGeocoderFactory } from "./eval-geocoder.ts";
|
|
29
|
+
/** Options for {@linkcode nppesDedupBenchmark}. */
|
|
30
|
+
export interface NPPESDedupBenchmarkOptions {
|
|
31
|
+
/**
|
|
32
|
+
* The injected geocoder factory (the command wires `mailwoman/geocode-core`; see `./eval-geocoder.ts`). Model-swap
|
|
33
|
+
* overrides (`--model`/`--tokenizer`/`--model-card`) are the COMMAND's factory config, not tool options.
|
|
34
|
+
*/
|
|
35
|
+
createGeocoder: EvalGeocoderFactory;
|
|
36
|
+
/** The threaded geocode surface — required when {@linkcode parallelGeocode} is set. */
|
|
37
|
+
geocodeStream?: EvalGeocodeStream;
|
|
38
|
+
/** Record-matcher sources directory. Default `$MAILWOMAN_DATA_ROOT/record-matcher/sources`. */
|
|
39
|
+
sources?: string;
|
|
40
|
+
/** State filter. Default TX. */
|
|
41
|
+
state?: string;
|
|
42
|
+
/** NPIs sampled. Default 300. */
|
|
43
|
+
maxNpis?: number;
|
|
44
|
+
/** EM-train the FS arms (label-free). Default true; `--no-train-em` uses the seeds. */
|
|
45
|
+
trainEm?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* #694 A/B: reproduce the pre-flip ingest (space-joined address columns + normalizeCase OFF). Default off (the
|
|
48
|
+
* validated flip: comma-join + #690 all-caps normalization). Same data + GBT, only the flip toggled — so a delta here
|
|
49
|
+
* is attributable to the flip.
|
|
50
|
+
*/
|
|
51
|
+
legacyJoin?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Optional A/B: a path to a trained dedup-gbt TS module (exports DEDUP_GBT_MODEL + DEDUP_GBT_META) to score alongside
|
|
54
|
+
* the shipped GBT at both truth levels — e.g. grade the #625 corroboration candidate.
|
|
55
|
+
*/
|
|
56
|
+
candidate?: string;
|
|
57
|
+
/** Write the #625 gold-set adjudication packet (org-name-grain over-merged clusters) here. */
|
|
58
|
+
dumpOvermerges?: string;
|
|
59
|
+
/** H3 resolution for the org-name-h3 truth grain. Default 11 (≈25 m edge). */
|
|
60
|
+
h3Res?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Geocode the sample across a worker pool ({@linkcode geocodeStream}) instead of the serial in-process seam. Heavy
|
|
63
|
+
* per-row work (ONNX parse + WOF SQLite) → threading pays; measured ~1.5× at 2 workers, coordinates identical.
|
|
64
|
+
*/
|
|
65
|
+
parallelGeocode?: boolean;
|
|
66
|
+
/** Worker-pool concurrency for {@linkcode parallelGeocode}. Default 2 (geocode is I/O-bound). */
|
|
67
|
+
geoConcurrency?: number;
|
|
68
|
+
/** Also write the markdown report here. */
|
|
69
|
+
outMd?: string;
|
|
70
|
+
}
|
|
71
|
+
/** The #617 NPPES dedup benchmark — see the module doc. Emits the markdown report to stdout. */
|
|
72
|
+
export declare function nppesDedupBenchmark(options: NPPESDedupBenchmarkOptions, report?: (line: string) => void): Promise<{
|
|
73
|
+
markdown: string;
|
|
74
|
+
}>;
|
|
75
|
+
//# sourceMappingURL=nppes-dedup-benchmark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nppes-dedup-benchmark.d.ts","sourceRoot":"","sources":["../../tools/nppes-dedup-benchmark.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAoBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAEhF,mDAAmD;AACnD,MAAM,WAAW,0BAA0B;IAC1C;;;OAGG;IACH,cAAc,EAAE,mBAAmB,CAAA;IACnC,uFAAuF;IACvF,aAAa,CAAC,EAAE,iBAAiB,CAAA;IACjC,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,iGAAiG;IACjG,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAuFD,gGAAgG;AAChG,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,0BAA0B,EACnC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAm4B/B"}
|