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)
- GP Sampler throw `ValueError: Fewer non-zero entries in p than size` HOT 4
- optuna create-study --storage $STORAGE_URL raises RuntimeError: The runtime optuna version 3.6.0 is no longer compatible with the table schema (set up by optuna 3.6.0). Please try updating optuna to the latest version by `$ pip install -U optuna`. HOT 7
- Can't retrieve lightgbm model's best_iteration after Optuna optimization HOT 7
- Returning `float("inf")` failed with MOTPE HOT 1
- Support multi-objective CMA-ES (MOCMAES) sampling algorithm HOT 2
- Optuna Hyperband Algorithm Not Following Expected Model Training Scheme.
- Optuna Hyperband Algorithm Not Following Expected Model Training Scheme
- (sqlite3.DatabaseError) database disk image is malformed HOT 7
- Is there any plan for Maximal Update Parametrization support ?
- Hyper-parameter optimization of YOLOv7 model
- Hyper-parameter optimization of YOLOv7 model
- Duration of iteration increases as the number of iterations increase, with distributed optimization. HOT 14
- Local Minima Skip HOT 8
- Enhance `plot_parallel_coordinate()` by eliminating redundant for-loops
- Use CPU-only PyTorch wheels on GitHub Actions
- from optuna.integration.xgboost import XGBoostPruningCallback error ModuleNotFoundError: No module named 'optuna_integration' HOT 3
- Inconsistent Dynamic Parameter Handling in Optuna Ask-Tell Interface with Conditional Trials
- Suggesting same parameters in several trials with discrete parameter grid HOT 1
- How to optimize the parameters to make the RMSE fitting value close to 0 when predicting multiple output items through multiple input items?
- Custom Executor Support
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.