Explainability

Not A Score You Have To Trust. The Evidence.

Give Zingg a ZINGG_ID and get back the pairs it matched, their similarity scores and how the cluster formed, with statistics that point you to the clusters and records worth checking.

explain --zinggid ea67d79a
One Cluster, Five RecordsZINGG_ID · ea67d79a
0.94rule0.870.710.92A104A211A339A402A517
model match, with scoredeterministic rule
Cluster Statisticsn = 5
z_cluster_centrality0.505 of 10 possible pairs matched
z_cluster_determinism0.101 pair from a rule, the rest from the model
pk1pk2match
A104A2110.94
A104A339rule
A211A3390.87
A339A4020.71
A402A5170.92

A104 and A517 never matched each other. They share a ZINGG_ID because the matches chain through A339 and A402.

Output Statistics

Every Cluster Comes With A Confidence Read

With output statistics configured, every match and incremental run writes cluster, record and summary statistics alongside the results.

z_cluster_centrality

How Dense A Cluster Is

Matched pairs divided by all possible pairs, n(n-1)/2. Near 1 is dense; low values are sparse clusters worth a look.

z_cluster_determinism

Rules Versus Model

The share of possible pairs connected by deterministic rules. Higher means more of the cluster is held together by rules.

z_record_centrality

How Central A Record Is

The share of the rest of the cluster a record matches, its matches divided by n-1.

z_record_determinism

Why A Record Belongs

The share of a record's connections that come from deterministic rules rather than the model.

Built For Audits

Turn "Trust The Model" Into "Verify The Model"

Find Large, Sparse Clusters

Filter for clusters that are big but loosely connected, the ones most likely to be wrong.

Audit Connector Records

A record with unusually high centrality can falsely bridge two entities. Check it before it merges them.

Track Your Rules

A rising determinism ratio across runs usually means your deterministic rules are improving.

Alert On Big Swings

If the number of clusters changes out of proportion to the records added or updated, raise an alert.

Run It

Plug In A ZINGG_ID And Go

Explain

Pair-Level Traceability

The explain phase takes the ZINGG_ID of a cluster and returns the pairs that matched inside it, as pk1 and pk2.

Statistics

On Every Run

Set an output stats location and match and incremental runs write cluster, record and summary statistics with a timestamp. Explainability docs

phase explainCommand line
./scripts/zingg.sh --phase explain \
  --zinggid ea67d79a-56a7-4431-ab55-d08bb3c10e2e \
  --conf explainConfig.json
# cluster, record and summary stats on every run
stats = EPipe("stats", "delta")
stats.addProperty("location", "/lake/zingg/stats_$ZINGG_DYNAMIC_STAT_NAME")
eArgs.setOutputStats(stats)
The pairs behind every matchauditable
FAQ

Explainability Questions

What does Explainability show?

For any cluster, the record pairs Zingg matched and their similarity scores, plus statistics on how densely the cluster is connected and how much of it comes from deterministic rules rather than the model.

How do I explain a cluster?

Run the explain phase with the ZINGG_ID of the cluster. Zingg returns a pair-level view, pk1 and pk2, of the records that matched inside it.

Why are some records in a cluster without matching each other?

Matching is transitive. If A matches B and B matches C, all three form one cluster even though A and C were never matched directly. The explain output shows the chain.

What is cluster centrality?

z_cluster_centrality is the number of matched pairs in a cluster divided by all possible pairs, n(n-1)/2. Values near 1 mean a dense cluster; low values mean a sparse one worth reviewing.

What is determinism?

z_cluster_determinism is the share of possible pairs connected by deterministic rules. A rising value over runs usually means your rules are improving.

How do I find records that wrongly join two clusters?

Look at z_record_centrality, the share of the cluster a record matches with. A few records with very high centrality can falsely bridge clusters, so validate them.

Does it work for deterministic matches?

Explain covers probabilistic matches. Clusters formed only by deterministic rules may return empty results.

Which edition has Explainability?

Zingg Enterprise. Statistics are written for match and incremental runs when an output stats location is configured.

Show Why RecordsBelong Together

Explainability and output statistics come with Zingg Enterprise, on your own data platform.