validateClassifier function exported ✓ 100.0%
Last updated: 2026-02-24T21:07:57.551Z
Metrics
LOC: 17
Complexity: 1
Params: 2
Coverage: 100.0% (6/6 lines, 7x executed)
Signature
validateClassifier(
thresholds: AccuracyThresholds = DEFAULT_THRESHOLDS,
): : ClassifierReport
Summary
Run the validation set against the current classifier. Returns an actionable report.
Source Code
export function validateClassifier(
thresholds: AccuracyThresholds = DEFAULT_THRESHOLDS,
): ClassifierReport {
const result = evaluateClassifier(classifySignals);
const health = checkDatasetHealth();
const failingTypes = Object.entries(result.perType)
.filter(([, v]) => v.accuracy < thresholds.perTypeMin)
.map(([type]) => type);
return {
globalAccuracy: result.globalAccuracy,
passesGlobalThreshold: result.globalAccuracy >= thresholds.globalMin,
failingTypes,
health,
};
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| checkDatasetHealth | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| EvalMisclassified | uses |