Model Diff

Confidently Add New Signals, Update Configuration And Deploy Models In Production

Change a rule, add a field or alter a type. Model Diff runs both configurations on the same data and shows exactly which records moved to a different ZINGG_ID, before you push it to production.

Two Configs In, One Table Out
The Changeoriginal → updated
- "email": FUZZY
+ "email": EXACT

[email protected] no longer counts as a near match for [email protected].

Diff OutputImpacted records only
record_pkZINGG_ID_ORIGINALZINGG_ID_UPDATED
C1043zg-88a1zg-77f3
1 record split out of zg-88a1split

Switching email to exact matching splits one record out of its cluster. Every other record keeps its ZINGG_ID.

Why Model Diff

Built For Decisions You'd Otherwise Make Blind

Model Validation

Confirm a config change did what you intended, and nothing else.

A/B Test Configurations

Compare two rule sets or field settings on the same data before choosing one.

Catch Regressions

Spot clusters that broke apart or merged unexpectedly before they reach production.

Compare Blocking

See how a wider blocking strategy shifts match results, and weigh it against run time.

The Output

Only The Records That Changed

The diff lists every impacted record with its ZINGG_ID under the original model and under the updated one, so you review a short table instead of two full outputs.

Records That Moved

Each record whose cluster assignment changed, with both ZINGG_IDs side by side.

New Clusters

Entities the updated model creates that did not exist under the original one.

Merges And Splits

Clusters that came together or broke apart between the two models.

Run It

Train Both, Then Diff Them

Step 1

Train The Original

Your baseline configuration, trained and matched as it runs today.

Step 2

Train The Update

The same data with your change: a field type, a rule, a blocking strategy or a parameter.

Step 3

Run The Diff Phase

Review the impacted records, then ship the update or keep the original. Model Diff docs

phase diffPython API
# originalArgs, newArgs: both trained with trainMatch
diffArgs = TransformedOutputArguments()
diffArgs.setParentArgs(newArgs)
diffArgs.setCompareToArgs(originalArgs)
diffArgs.setTransformedOutputPath(EPipe("diff", "delta"))

phase = [EClientOptions.PHASE, "diff"]
EZingg(diffArgs, EClientOptions(phase)).initAndExecute()
Impacted records, two ZINGG_IDs eachno guesswork
FAQ

Model Diff Questions

What is Model Diff?

A Zingg Enterprise phase that compares the output of two model configurations run on the same data and lists every record whose cluster assignment changed.

What can I compare?

Any two configurations: a field switched from fuzzy to exact matching, a new deterministic rule, a different blocking strategy, nicknames or other mappings, or tuning parameters such as labelDataSampleSize and numPartitions.

What does the diff output contain?

Only the records the change affected, with their primary keys, the ZINGG_ID from the original model and the ZINGG_ID from the updated one, side by side.

Do I need to train both models first?

Yes. Run trainMatch on the original and the updated configuration, then run the diff phase with the updated configuration and the original one to compare against.

How do I run it?

From Python, pass the updated arguments and the original arguments to the diff phase. From the command line, run the diff phase with --conf pointing at the updated configuration and --compareTo at the original.

Which edition has Model Diff?

Zingg Enterprise.

Change Your ModelWith Confidence

Model Diff comes with Zingg Enterprise, on your own data platform.