Skip to content

Commit

Permalink
fix: should_prune() takes no argument
Browse files Browse the repository at this point in the history
  • Loading branch information
arxaqapi authored Jan 12, 2025
1 parent 2ad6a19 commit 7ee6449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyannote/pipeline/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ def objective(trial: Trial) -> float:
continue

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

if show_progress != False:
progress_bar.close()
Expand Down

0 comments on commit 7ee6449

Please sign in to comment.