Changing a `suggest_uniform` call trigger an error in plot_param_importances when `params` argument given.
See original GitHub issueIf the database (I use the potgresql backend for storing trials) contains entries:
598|61|x|51.0|{"name": "IntUniformDistribution", "attributes": {"low": 20, "high": 100, "step": 1}}
608|62|x|63.0|{"name": "IntUniformDistribution", "attributes": {"low": 30, "high": 120, "step": 1}}
then using suggest_uniform(study, params=['x'])
raise a ValueError: Parameters importances cannot be assessed with dynamic search spaces if parameters are specified. Specified parameters: ['x'].
.
I have to manually edit the entries in the database to low:20, high:120 to fix the issue. 😦
It would be nice if the plotting function could do this kumfu by itself 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Raise custom Exception with arguments - Stack Overflow
In case 1, raise just calls StandardError.new('argh') , so these are the same. But what if you pass an exception instance and a...
Read more >TypeError: params argument given to the optimizer should be ...
I'm trying to run the official RAdam implementation using a similar style to the excel sheet that Jeremy put together. I've been able...
Read more >Params argument given to the optimizer should be an iterable
I tried to create a simple optimization example in Pytorch , but I get a weird error saying that weights are not iterable,...
Read more >Solved: 'replace' expects its first parameter 'string' to
This failed with the error in the error. 'replace' expects its first parameter 'string' to be a string. The provided value is of...
Read more >Error() constructor - JavaScript - MDN Web Docs
Both create a new Error instance. Parameters. message Optional. A human-readable description of the error.
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 Free
Top 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
I’m wondering if this previous discussion doesn’t address the topic here https://github.com/optuna/optuna/issues/1856#issuecomment-703935388. A PR was worked on but unfortunately got stale.
Thank you for creating the issue! According to the error message, I suppose that the behaviour is intended, so let me change the label to
feature
frombug
.At least, it would be great to give a note to explain the dynamical range is not supported by
plot_param_importances
.Let me put a minimal example to see the error message.