Label Training Pairs
Review candidate pairs and label each as Match, No Match, or Can't Say. The human feedback step that teaches Zingg what a match looks like in your data.
The label phase opens an interactive layer where you review the candidate pairs found by findTrainingData and mark each pair. This is the only step in the Zingg workflow that requires human input. No ML knowledge is needed, just your domain understanding of whether two records represent the same real-world entity.
If you already have labeled data from an external source, you can supply it directly using trainingSamples in your configuration. See Create Training Data for how to set this up.
30 to 40 matching pairs is a strong starting point. Label until you feel that your labeled examples represent all field types and data patterns in your schema. If accuracy needs improvement after your first match run, return to labelling, focus on the patterns or field combinations that appear to be missing or underrepresented.
Run label
Zingg on Snowflake can be run either from a local terminal via the CLI, or natively inside Snowflake using an interactive labeling service.
CLI (local terminal)
Snowflake (interactive service)
The label phase is interactive, so instead of an async job, it runs as a standing service you connect to directly.
<zingg-cli-spec-file> is the specification file that defines the container and service configuration used to run the Zingg CLI interactively inside Snowpark Container Services. It is maintained by your administrator and referenced from your @specs stage.
Once the service is running, retrieve its endpoint to connect to the labeling session.
Use the returned endpoint to open the interactive labeling terminal and label pairs as you would via CLI.
Stop the compute pool
Once you're done labeling, stop the compute pool to release resources.
Last updated
Was this helpful?