Skip to main content
Run any Skill in Manus
with one click

evaluating-multiclass-classifiers

Stars2
Forks0
UpdatedJune 17, 2026 at 00:55

Produces a complete multi-class classifier evaluation report from y_true (integer or string labels, 3+ classes) and y_pred_proba (n_samples x n_classes matrix): per-class precision / recall / F1, macro-F1 + weighted-F1 + micro-F1, full K x K confusion matrix (counts plus row-normalized), top-k accuracy where k makes sense, one-vs-rest ROC and PR per class, per-class support, and class imbalance check. Triggers whenever a trained classifier has 3 or more labels (image classification across N categories, intent classification, multi-class vulnerability triage, ICD-code prediction). Refuses to lead with bare overall accuracy under imbalance, refuses to report only macro-F1 without naming whether macro or weighted matches the deployment cost model, and hands off to evaluating-binary-classifiers when the task is actually two-class.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
6 files
SKILL.md
readonly