Comments (3)
Hi, could you share minimal reproducible codes with us?
from optuna.
Sure, that reproduces the issue:
def test_gridsampler_ask_tell():
def objective(trial):
x = trial.suggest_float("x", 0, 10)
return x ** 2
search_space = dict(x=[1, 2])
study = optuna.study.create_study(sampler=optuna.samplers.GridSampler(search_space))
for i in range(2):
trial = study.ask()
value = objective(trial)
study.tell(trial, value)
from optuna.
Thanks. I think this is intended behaviour according to #4121 (comment), so this is not a bug. The docs should clarify this workaround or grid-search doesn't to assume ask-and-tell interface.
from optuna.
Related Issues (20)
- matplotlib plot_rank bug HOT 3
- Nested study HOT 5
- Clarifying the documentation of the step parameter in the report method
- Parallelize GPU without a database, just use the .txt file you save trials to. HOT 1
- Remove `examples` from docker images
- Artifact in Google Colaboratory
- `JSONDecodeError` in `JournalStorage` HOT 3
- Grid search reevaluates the same parameter combination in parallelization scenario HOT 1
- Clarify `GridSampler` and ask-and-tell interface problem
- Parent run missing in MLFlow when using nested trials HOT 3
- add domain aware BO algorithm
- Remove `study optimize` from CLI tutorial
- Same hypermeters produced different results.
- Stops with only 1 trial and reports it as the best trial!
- When the hyperparameters importance plot is generated it does not label the parameters by its actual name HOT 2
- NSGAIISampler AssertionError()
- NSGAIIISampler multiple errors
- import optuna have question:TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'
- Passing float-castable str to `study.tell` raises an error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optuna.