We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de22f32 + 00eff17 commit 0454ddaCopy full SHA for 0454dda
README.md
@@ -43,14 +43,14 @@ import optunahub
43
44
45
def objective(trial: optuna.Trial) -> float:
46
- x = trial.suggest_float("x", 0, 1)
+ x = trial.suggest_float("x", -5, 5)
47
+ y = trial.suggest_float("y", -5, 5)
48
+ return x**2 + y**2
49
- return x
50
-
51
-mod = optunahub.load_module("samplers/simulated_annealing")
52
-study = optuna.create_study(sampler=mod.SimulatedAnnealingSampler())
53
-study.optimize(objective, n_trials=20)
+module = optunahub.load_module(package="samplers/auto_sampler")
+study = optuna.create_study(sampler=module.AutoSampler())
+study.optimize(objective, n_trials=10)
54
55
print(study.best_trial.value, study.best_trial.params)
56
```
0 commit comments