Skip to content

Commit 9cc38dd

Browse files
ndawearjoly
authored andcommitted
sample_weight metrics tests: add missing micro and macro averaging for precision, recall, and f-score
1 parent 9df5626 commit 9cc38dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sklearn/metrics/tests/test_metrics.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,12 @@
322322
"weighted_f0.5_score", "weighted_f1_score", "weighted_f2_score",
323323
"weighted_recall_score", "weighted_roc_auc",
324324

325+
"micro_f0.5_score", "micro_f1_score", "micro_f2_score",
326+
"micro_precision_score", "micro_recall_score",
327+
328+
"macro_f0.5_score", "macro_f1_score", "macro_f2_score",
329+
"macro_precision_score", "macro_recall_score",
330+
325331
"explained_variance_score",
326332
"mean_squared_error",
327333
"mean_absolute_error",

0 commit comments

Comments
 (0)