-
Notifications
You must be signed in to change notification settings - Fork 75
Monkey patch Hyperparameter.sample_value() to support quantization
#833
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
Conversation
| "type": "int", | ||
| "default": 2000000, | ||
| "range": [0, 1000000000], | ||
| "quantization": 1000000, |
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.
Probably need tests to check this now, right?
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.
absolutely. I'll add a ton more unit tests to this PR shortly
| else: | ||
| raise TypeError(f"Invalid Parameter Type: {tunable.type}") | ||
|
|
||
| if tunable.quantization: |
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.
| if tunable.quantization: | |
| if tunable.quantization: | |
| # Temporary workaround to dropped quantization support in ConfigSpace 1.0 | |
| # See Also: https://github.com/automl/ConfigSpace/issues/390 |
bpkroth
left a comment
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.
Waiting on tests and then let's merge this.
|
superseded by #835 |
Experimental implementation of quantization of tunable parameters
Closes #803