Skip to content

shadowmodder/ml-eval-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

ml-eval-report

Lightweight, dependency-light evaluation for binary classifiers. NumPy in, plain-Python and markdown out — no heavyweight plotting or framework lock-in. Useful as a drop-in report step in any training or CI pipeline.

Install

pip install -e .

Library

from mleval import evaluate, to_markdown, roc_auc, threshold_sweep

y_true  = [0, 0, 1, 1]
y_score = [0.1, 0.3, 0.7, 0.9]

print(to_markdown(evaluate(y_true, y_score, threshold=0.5)))
print("AUC:", roc_auc(y_true, y_score))
for row in threshold_sweep(y_true, y_score):
    print(row)

CLI

mleval predictions.csv -t 0.5 -o REPORT.md   # CSV needs columns: y_true,y_score

What's inside

  • Confusion matrix, precision / recall / F1 / accuracy
  • ROC and PR curves + trapezoidal AUC
  • Threshold sweep table for choosing an operating point
  • Calibration bins (mean predicted vs. empirical positive rate)

MIT licensed.

About

Lightweight, dependency-light evaluation for **binary classifiers**. NumPy in, plain-Python and markdown out —

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages