What is Optuna's TPE sampler and why is it popular?
hardAnswer
- Tree-structured Parzen Estimator: for each hyperparameter, model and — two densities over past trials, split by an objective quantile.
- Pick the next config to maximize the ratio .
- Advantages: handles categorical + continuous + conditional hyperparameters natively (unlike GP Bayesian opt), scales to hundreds of trials cheaply, and doesn't require a full covariance matrix.
- Combined with pruners (asynchronous halving), Optuna is the default open-source hyperparameter tool.
Check yourself — multiple choice
- Same as grid search
- Models and over past trials; picks configs maximizing their ratio
- TPE is a type of tree ensemble
- TPE only works for two hyperparameters
TPE: model good vs bad trial distributions; sample from ratio ⇒ cheap Bayesian tuning.
#hyperparameter-tuning
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- How do you choose the regularization strength (lambda / alpha)?
- How do you choose k in k-Nearest Neighbours?
- What are the most impactful hyperparameters of a decision tree?
- Which Random Forest hyperparameters actually matter for tuning?
- What is the role of the learning rate (shrinkage) in GBM?
- Which XGBoost hyperparameters have the biggest impact, and in what tuning order?