(self)
| 64 | return mean |
| 65 | |
| 66 | def run(self): |
| 67 | study = optuna.create_study(direction="maximize") |
| 68 | study.optimize(self._objective, n_trials=self.n_trials, n_jobs=1) |
| 69 | # fig1 = optuna.visualization.plot_optimization_history(study) |
| 70 | # fig1.show() |
| 71 | # fig2 = optuna.visualization.plot_slice(study) |
| 72 | # fig2.show() |
| 73 | # fig3 = optuna.visualization.plot_param_importances(study) |
| 74 | # fig3.show() |
| 75 | print(study.best_params) |
| 76 | return self.best_results |
| 77 | |
| 78 | |
| 79 | def set_best_config(args): |
no outgoing calls
no test coverage detected