Enable `objective(study.best_trial)`
See original GitHub issueI find it useful to be able to re-run trials to investigate them further, e.g. with more debugging/data reporting enabled. I thought that it would be natural if I could manually run a trial from a study e.g. by:
my_objective(my_study.best_trial, more_reporting=True)
but given that the objective function calls various suggest_*
methods, I get AttributeError: 'FrozenTrial' object has no attribute 'suggest_int'
. And instead I need to do:
my_objective(optuna.trial.FixedTrial(my_study.best_trial.params, my_study.best_trial.number), more_reporting=True)
Making my_objective(my_study.best_trial)
work would be a small, but useful improvement in my workflow.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
optuna.study. - trials - Read the Docs
This object provides interfaces to run a new Trial , access trials' history, set/get user-defined ... Return parameters of the best trial in...
Read more >Blood Pressure After Endovascular Stroke Therapy-II (BEST-II)
The purpose of this trial is to evaluate the safety of lower BP management strategies in patients who are successfully treated with endovascular...
Read more >The BEST Trial: Biomarkers for Evaluating Spine Treatments
This Lower Back Pain and Pain study at UCSD is now recruiting people ages 18 years ... The primary objective of this trial...
Read more >Hands-On Python Guide to Optuna - A New Hyperparameter ...
In Optuna, we use the study object to manage optimization. ... objective function:",study.best_value) # To get the best trial: print("Return ...
Read more >Bacpac | Home
About the study · The BEST trial includes 4 proven treatments for chronic low back pain, but they do not always work equally...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@keisuke-umezawa Thank you for your reply! But I’m a little bit busy and not good health condition this July, so I create PR for this issue if this issue’s priority is not so high… Is it okay?
Let me close this issue because this feature has been introduced in #1503.