Skip to content

Commit

Permalink
use pr_auc_samples as default metrics for multilabel
Browse files Browse the repository at this point in the history
  • Loading branch information
zzachw committed Nov 10, 2022
1 parent 02ae89f commit 60ee64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhealth/metrics/multilabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def multilabel_metrics_fn(
threshold: float = 0.5,
) -> Dict[str, float]:
if metrics is None:
metrics = ["roc_auc_macro", "pr_auc_macro"]
metrics = ["pr_auc_samples"]

y_pred = y_prob.copy()
y_pred[y_pred >= threshold] = 1
Expand Down

0 comments on commit 60ee64a

Please sign in to comment.