I set average to micro to fix a scikit-learn error. My F1 score turned into accuracy
An LLM routes our support tickets into three queues: general, billing and refund. I wanted an F1 score on the eval dashboard, so I called f1_score on 100 labeled tickets. It crashed with this error: Target is multiclass but average='binary' . I added average='micro' , the error went away, and the d…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-11-02 13:35 · DEV Community — Machine Learning
I set average to micro to fix a scikit-learn error. My F1 score turned into accuracy