Repository navigation
feat: 60 synthetic scripts, schema, validator, scorer and CI - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The first release of the benchmark:
data/dev.jsonl(30) anddata/test.jsonl(30), each 15 scam + 15 benign across 10 scam and 7 benign categories, with deliberately hard cases: genuine bank alerts that use scary words, innocent "gift card" and "wire the money" family talk, and polite scams with no scam vocabulary (landlord, boss, "I'm travelling").schema/script.schema.json(JSON Schema 2020-12, strict) andscripts/validate.mjs: schema, id/split/prefix rules, label-vs-category consistency, 15/15 quotas, >= 40% tricky benign, >= 6 scam categories, different author groups for dev and test, no URLs or phone numbers, near-duplicate detection (word 3-gram overlap).scripts/score.mjs: precision, recall, F1, false-positive rate at two operating points (hold and flag), per-category recall, misclassified list; divide-by-zero isnull, never0; missing predictions count asallowand are reported.Test plan
npm run validate: OK (dev: 30, test: 30)