MNT Remove redundant metrics in test_common.py
@@ -198,22 +198,20 @@ THRESHOLDED_METRICS = {
"brier_score_loss": brier_score_loss,
- "roc_auc_score": roc_auc_score,
+ "roc_auc_score": roc_auc_score, # default: average="macro"
"weighted_roc_auc": partial(roc_auc_score, average="weighted"),
"samples_roc_auc": partial(roc_auc_score, average="samples"),
"micro_roc_auc": partial(roc_auc_score, average="micro"),
- "macro_roc_auc": partial(roc_auc_score, average="macro"),
"partial_roc_auc": partial(roc_auc_score, max_fpr=0.5),
- "average_precision_score": average_precision_score,
+ "average_precision_score":
+ average_precision_score, # default: average="macro"
"weighted_average_precision_score":
partial(average_precision_score, average="weighted"),
"samples_average_precision_score":
partial(average_precision_score, average="samples"),
"micro_average_precision_score":
partial(average_precision_score, average="micro"),
- "macro_average_precision_score":
- partial(average_precision_score, average="macro"),
"label_ranking_average_precision_score":
label_ranking_average_precision_score,
}
@@ -253,14 +251,12 @@ METRIC_UNDEFINED_MULTICLASS = {
"roc_auc_score",
"micro_roc_auc",
"weighted_roc_auc",
- "macro_roc_auc",
"samples_roc_auc",
"partial_roc_auc",
"average_precision_score",
"weighted_average_precision_score",
"micro_average_precision_score",
- "macro_average_precision_score",
"samples_average_precision_score",
# with default average='binary', multiclass is prohibited
@@ -301,7 +297,6 @@ METRICS_WITH_POS_LABEL = {
"average_precision_score",
"weighted_average_precision_score",
"micro_average_precision_score",
- "macro_average_precision_score",
"samples_average_precision_score",
# pos_label support deprecated; to be removed in 0.18:
@@ -353,11 +348,10 @@ THRESHOLDED_MULTILABEL_METRICS = {
"unnormalized_log_loss",
"roc_auc_score", "weighted_roc_auc", "samples_roc_auc",
- "micro_roc_auc", "macro_roc_auc", "partial_roc_auc",
+ "micro_roc_auc", "partial_roc_auc",
"average_precision_score", "weighted_average_precision_score",
"samples_average_precision_score", "micro_average_precision_score",
- "macro_average_precision_score",
"coverage_error", "label_ranking_loss",
"label_ranking_average_precision_score",
