eval::evaluator
More...
Classes
Attributes
Detailed Description
Per-specialist evaluation: perplexity, BLEU/ROUGE, latency via MLX.```
## Attributes Documentation
### variable parser
```python
parser = argparse.ArgumentParser(description="Evaluate a specialist model");
variable required
variable True
variable help
variable args
args = parser.parse_args();
variable project_root
project_root = Path(__file__).resolve().parent.parent;
variable evaluator
evaluator = SpecialistEvaluator(project_root);
variable test_path
str test_path = project_root / "data" / "specialists" / args.niche / "test.jsonl";
variable test_samples
variable line
variable results
dict results = {
"niche": args.niche,
"num_samples": len(test_samples),
"accuracy": 0.0,
"perplexity": 0.0,
"latency_ms_per_token": 0.0,
};
variable out_dir
str out_dir = project_root / "artifacts" / "evaluations";
variable parents
variable exist_ok
variable f
variable indent
Updated on 2026-07-25 at 22:56:57 +0000