Add examples/online: matchlab vs Splink, batch cost and online lookups - #627
Draft
will-langdale wants to merge 1 commit into
Draft
Add examples/online: matchlab vs Splink, batch cost and online lookups#627will-langdale wants to merge 1 commit into
will-langdale wants to merge 1 commit into
Conversation
will-langdale
force-pushed
the
online-matchlab
branch
2 times, most recently
from
July 27, 2026 17:53
713e1cc to
c70ab1c
Compare
Validate the Matchlab local API against the MoJ "Running Splink in Production" pipeline shape: dedupe each source, link, cluster once. - data.py reuses the companies benchmark generator for ~100k entities - model.py trains the shared Splink model once and reuses the artefact - pipeline_matchlab.py / pipeline_splink.py express the same job both ways - benchmark.py reports expression, batch time and memory, and single online-match latency across DuckDB and SQLite Finding: both pipelines recover the ground truth exactly. Matchlab's batch build costs ~4x the time at roughly equal memory, because it runs Splink per source pair, deduplicates, and materialises a queryable resolution. That materialisation makes a single online match a point select: ~5.3 ms in DuckDB versus ~0.013 ms in SQLite, ~400x faster. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012dPucpK8PqYNX5ChpCVc8U
will-langdale
force-pushed
the
online-matchlab
branch
from
July 27, 2026 17:55
c70ab1c to
49a6986
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Validate the Matchlab local API against the MoJ "Running Splink in Production" pipeline shape.
🛠️ Changes proposed in this pull request
👀 Guidance to review
🤖 AI declaration
✅ Checklist: