-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typed Optimization #531
Typed Optimization #531
Conversation
* fix: import error from exception module (bayesian-optimization#525) * fix: replace list with sequence (bayesian-optimization#524) * Fix min window type check (bayesian-optimization#523) * fix: replace dict with Mapping * fix: replace list with Sequence * fix: add type hint * fix: does not accept None * Change docs badge (bayesian-optimization#527) * fix: parameter, target_space * fix: constraint, bayesian_optimization * fix: ParamsType --------- Co-authored-by: till-m <36440677+till-m@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! this is very cool
- minor: in the new notebook, might be nice to add type hints, particularly to show that
target_function_1d(x)
-> int
Thanks for the review! Once I have some time to finish the custom parameter example, this would be ready for merging. NB: I might also handle #530 with this PR, as it's technically already implemented here. |
@bwheelz36 I added an example with a custom parameter, if you get the chance it'd be great if you could have a look |
@phi-friday could you have another look over this PR and check if the typing is implemented correctly? |
I think from my side this is done. I'm looking to merge this pretty soon and make a release after. Apparently you can do beta releases which might make sense here. |
resolves #93 #191 #308 #376
Implement typed optimization as described in ref. For an example, see the notebook and also
examples/typed_hyperparameter_tuning.py
. Some evidence that this can be valuable: