Skip to content

Commit

Permalink
fix: pyannote#52 - should_prune() takes no argument
Browse files Browse the repository at this point in the history
  • Loading branch information
arxaqapi committed Aug 7, 2024
1 parent 588a203 commit 5540157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyannote/pipeline/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def objective(trial: Trial) -> float:
continue

trial.report(np.mean(losses) if metric is None else abs(metric), i)
if trial.should_prune(i):
if trial.should_prune():
raise optuna.structs.TrialPruned()

if show_progress != False:
Expand Down

0 comments on commit 5540157

Please sign in to comment.