feat(datasets): export Aegis violence rows as HumanLabeledDataset - #2524
feat(datasets): export Aegis violence rows as HumanLabeledDataset#2524Ray Winkelman (rwinkelman) wants to merge 3 commits into
Conversation
Adds fetch_human_labeled_harm_dataset_async so remote Aegis 2.0 response labels can feed scorer evaluation without hand-authored CSVs. Addresses microsoft#2475 (violence category first).
…icrosoft#2475) Auto-select harm_definition from harm_category so Hate/Identity Hate rows build a HumanLabeledDataset against hate_speech.yaml.
|
Extended with |
Map Malware rows to cyber.yaml and add sexual/self_harm harm_definition profiles.
|
Follow-up: added malware→cyber.yaml, sexual, and suicide/self-harm harm_definition profiles + malware unit test. |
|
Thanks for building this Ray Winkelman (@rwinkelman), and sorry for the slow response. Answering your encoding question, plus three things from reading the diff. On binary safe/unsafe: yes, and there's evidence for itBinary is the right call, and not just as a simplification. From the three-rater files in So a graded encoding of an Aegis binary label would be inventing precision that your own gold set doesn't have between raters. One consequence worth documenting rather than fixing: any metric that treats The one I'd push back on:
|
Summary
fetch_human_labeled_harm_dataset_async()on the Aegis 2.0 remote loader.response+response_labeland maps them intoHarmHumanLabeledEntryrows for scorer evaluation.violence.yaml).Addresses #2475.
Test plan
pytest tests/unit/datasets/test_aegis_human_labeled_dataset.py