Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottecvn committed Feb 13, 2024
1 parent 49f2a9a commit e3edd4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eval/bayesian_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ def objective(trial, n_trial, merged_dataset, data_order, txt_name):
study = optuna.create_study(direction='maximize', storage="sqlite:///db.sqlite3", study_name=txt_optuna)
study.optimize(lambda trial: objective(trial, trials, merged_dataset, data_order, txt_name), n_trials=trials)

optuna.plot_intermediate_values(study)
optuna.plot_parallel_coordinate(study)
optuna.plot_contour(study)

print('Number of finished trials:', len(study.trials))
print('Best trial:', study.best_trial.params)
print(study.best_trial.number)
Expand Down

0 comments on commit e3edd4f

Please sign in to comment.