I am trying to run optimization using optuna
:
study = optuna.create_study(direction='minimize', sampler=optuna.samplers.GridSampler(search_space))
study.optimize(objective, n_trials=20)
For which I am getting below error:
AttributeError: module optuna.samplers has no attribute GridSampler
optuna
version is 0.10.0
Could someone please help me on how to fix this issue.
I tried to reproduce your example:
Then:
I see that we do not have
GridSampler
You need to upgrade your
optuna
optuna.samplers.GridSampler
Now,