Context
There is currently no way to actually invoke algorithm-pattern-classifier from the command line, and no labeled dataset to measure detector/classifier accuracy against as new patterns are added.
What
- Add a CLI entry point (e.g.
pattern-classifier classify <file>) that runs the classifier pipeline and prints the detected pattern(s) with confidence and supporting evidence (--json for machine-readable output).
- Build a small labeled corpus of algorithm implementations per pattern (two-pointer, sliding-window, DP, ...) to use as a regression/evaluation set for precision & recall as detectors are added.
Acceptance Criteria
Context
There is currently no way to actually invoke
algorithm-pattern-classifierfrom the command line, and no labeled dataset to measure detector/classifier accuracy against as new patterns are added.What
pattern-classifier classify <file>) that runs the classifier pipeline and prints the detected pattern(s) with confidence and supporting evidence (--jsonfor machine-readable output).Acceptance Criteria
pattern-classifier classify path/to/file.pyruns end-to-end and prints a reportpyproject.tomltests/(or a dedicatedbenchmarks/fixtures directory) with multiple examples per pattern