Skip to content

Commit 1673bec

Browse files
committed
updated cli output
1 parent 4011bc8 commit 1673bec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

birdnet_analyzer/train/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ def run_trial(self, trial, *args, **kwargs):
544544

545545
print("...Done.", flush=True)
546546

547-
# Get best validation metrics based on AUPRC instead of loss for more reliable results with imbalanced data
548-
best_epoch = np.argmax(history.history["val_AUPRC"])
547+
# Get best validation metrics based on loss
548+
best_epoch = np.argmin(history.history["val_loss"])
549549
best_val_auprc = history.history["val_AUPRC"][best_epoch]
550550
best_val_auroc = history.history["val_AUROC"][best_epoch]
551551
best_val_loss = history.history["val_loss"][best_epoch]

0 commit comments

Comments
 (0)