diff --git a/recipes/001_first.py b/recipes/001_first.py index 91fbaa4b..47d0c56a 100644 --- a/recipes/001_first.py +++ b/recipes/001_first.py @@ -113,6 +113,6 @@ def objective(trial: optuna.trial.Trial) -> float: ################################################################################################### # In the above examples, search space is estimated at the first trial and updated dynamically through optimization. # If you pass the search space to the sampler, you can avoid the overhead of estimating the search space. -sampler = MySampler({"x": optuna.distributioins.FloatDictribution(-10, 10)}) +sampler = MySampler({"x": optuna.distributions.FloatDictribution(-10, 10)}) study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=100)