MCPcopy
hub / github.com/THUDM/CogDL / run

Method run

cogdl/experiments.py:66–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
79def set_best_config(args):

Callers 5

auto_experimentFunction · 0.95
test_adv.pyFile · 0.45
test_defense.pyFile · 0.45
test_injection.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected