feat(measurement): add RAT-Bench reidentification W&B metrics#225
Conversation
Signed-off-by: Lipika Ramaswamy <lipika.ramaswamy@gmail.com>
8777f3f to
97f5b8b
Compare
Greptile SummaryThis PR adds
Confidence Score: 4/5Safe to merge with awareness of one ingress validation issue that could silently reject valid records from producers using rounded floats. The cross-field validator in validate_summary_counts uses an absolute tolerance of 1e-6 when comparing the submitted percentage against the value recomputed from integer counts. Any producer that rounds its output to 2 decimal places (e.g., 28.57 instead of 28.571428... for rows_processed=7, reidentified_rows=2) will be rejected at ingress even though the data is valid. The test suite only exercises exact round fractions, so this boundary is not exercised and the failure would surface silently in production when real benchmark data arrives. tools/measurement/measurement_tools/wandb_ingress.py — the tolerance values in validate_summary_counts for reidentification_rate_pct and coverage_pct Important Files Changed
|
Signed-off-by: Lipika Ramaswamy <lipika.ramaswamy@gmail.com>
Signed-off-by: Lipika Ramaswamy <lipika.ramaswamy@gmail.com>
Signed-off-by: lipikaramaswamy <lramaswamy@nvidia.com>
Related Issue
No linked issue required: maintainer-owned benchmark measurement integration for RAT-Bench re-identification metrics.
Plan Document
No plan required: scoped measurement schema/W&B ingestion extension with regression coverage.
Summary
Adds RAT-Bench re-identification as a first-class measurement record for Anonymizer benchmark ingestion and W&B aggregation.
rat_bench_reidentificationto measurement ingress validation.reid_thresholdas a last-value configuration scalar rather than an averaged metric.[0, 100]at ingress and W&B table-model validation.Type of Change
Contributor Checklist
fix: handle empty entity listskills/anonymizer/SKILL.mdupdated if neededValidation
uv run pytest tests/tools/test_measurement_ingress_completion.py::test_wandb_ingress_accepts_rat_bench_reidentification_summary tests/tools/test_measurement_ingress_completion.py::test_wandb_ingress_rejects_rat_bench_percentages_above_100 tests/tools/test_measurement_wandb_logging.py::test_wandb_aggregates_rat_bench_reidentification_record tests/tools/test_measurement_wandb_logging.py::test_wandb_scalar_registry_matches_package_field_catalogDocumentation and Artifacts
make docs-buildpasses locallymake convert-notebooks