-
Notifications
You must be signed in to change notification settings - Fork 312
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
Feature request: specifying distributions, from which individual parameters in search space should be sampled #702
Comments
Hi, @imbalu007! I don't think we currently allow defining parameters as distributions in general. You can, however, mark your range parameters as cc @danielrjiang (as current ModOpt oncall) and @Balandat and @eytan for additional thoughts |
To add to Lena's answer, hyperopt is a bit different since it mainly uses TPEs where it is more natural to specify priors for the different tunable parameters. The most common model used by Ax is a Gaussian process (GP) with a Matern kernel (even though other models can be used as well) and it isn't as natural to specify the same types of priors for GPs. You technically can, but your posterior likely won't be Gaussian anymore. You can still achieve log-scale by setting Out of curiosity, can you provide some more context on why you want to specify different priors for the tunable parameters? |
@dme65 , it is a requirement from one of our customers that uses Bayesian optimization to finetune their model. |
As @dme65 helped me understand, specifying priors on individual parameters is very natural for very natural for Tree Parzen Estimators (TPE), but not at all for Gaussian Processes (GP), at least not if we are using analytic mean and variance predictions as Ax does at the moment. There are a few paths we could take to support user-specified priors for individual parameters:
In light of all of these, we'd say that if priors on individual parameter are crucial, it might be best to stick to Hyperopt or Optuna for now, as for us supporting this is a wishlist item with an uncertain status. |
Merging this issue into our wishlist master task. |
How to define the distribution from which a hyperparameter should be sampled?
In Hyperopt, this could be done using different functions in the API like, hp.normal, hp.lognormal, etc. (http://hyperopt.github.io/hyperopt/getting-started/search_spaces/)
The text was updated successfully, but these errors were encountered: