Skip to content
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

Why can't OrdinalHyperparameter have weights? #271

Open
mh415-f opened this issue Sep 15, 2022 · 2 comments
Open

Why can't OrdinalHyperparameter have weights? #271

mh415-f opened this issue Sep 15, 2022 · 2 comments

Comments

@mh415-f
Copy link

mh415-f commented Sep 15, 2022

I was wondering why an OrdinalHyperparameter can't have weights for the values in sequence. I saw the hint in the docs about hyperparameters, but don't understand yet why. Is this technically possible and just not implemented yet or would there be a fundamental problem with weights for the values of a OrdinalHyperparameter?

@mfeurer
Copy link
Contributor

mfeurer commented Sep 20, 2022

The answer is pretty simple - no one has requested this so far. I don't see any fundamental problem with this, and we would be very happy about a PR adding this.

@eddiebergman
Copy link
Contributor

This is possible and I imagine this would have an identical behaviour to a categorical.
Right now the weights are only used when sampling values and for no other reason. Given the order implied by an Ordinal does not influence sampling, this can be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants