Verify Blocking
How to inspect the blocking model, understand its coverage, and fix missed matches caused by blocking
The blocking model filters your dataset before any similarity comparisons happen. Records in different blocks are never compared. This is what makes Zingg scalable, but it also means that if the blocking model puts two matching records in different blocks, those records will never be matched and the match will be missed regardless of how well the similarity model is trained.
If your results are missing matches you expect to see, or if the match job is slow, start here.
verifyBlocking tells you what percentage of your known matching pairs are being blocked together correctly. Run this test after configuring Zingg and again after training if you suspect missed matches.
What verifyBlocking output contains
The verifyBlocking phase produces two output directories under zinggDir/modelId/blocks/timestamp/:
counts
Record count per block. Shows how many records are in each block. Very large blocks indicate poor blocking specificity.
blockSamples
The top 10% of records associated with each block. Use this to understand which records are being grouped together and whether the groupings make sense.
If verifyBlocking shows low coverage, what to do in order
Poor blocking coverage means matching pairs are being placed in different buckets and never compared. Four causes account for most cases:
TODO
Add more labeled training pairs of the type being missed. Focus on pairs that represent the variation patterns missing from your current training set.
Review your field match types. Fields marked
DONT_USE are excluded from blocking as well as similarity. If a field has a strong identity signal - a consistent identifier that appears across matching records - consider changing it fromDONT_USEtoFUZZY.Check whether missed pairs share a common characteristic. If all missed pairs have empty values in a key field, empty fields cannot contribute to blocking. Either remove that field from your blocking config or improve data completeness upstream.
If standard blocking consistently misses a specific pattern in your data, consider custom blocking functions.
Run the verifyBlocking phase
Reading the output
verifyBlocking produces two output directories under zinggDir/modelId/blocks/timestamp/:
counts- block size distributionblockSamples- sample records from each block
Read the output to inspect block coverage:
What to do if coverage is low
If verifyBlocking shows that many known matching pairs are not being blocked together, try these in order:
Add more labelled training pairs of the type being missed. The blocking model learns from the same training data as the similarity model.
Check your field match types. Fields set to
DONT_USEare excluded from blocking. If a key identity field is set toDONT_USE, matching pairs that differ on other fields may end up in different blocks.Try the
WIDERblocking strategy (Enterprise only) if large blocks suggest the tree is over-relying on one or two fields → Blocking Strategies: DEFAULT vs WIDER
Last updated
Was this helpful?