set_sampler
Configures the optimization algorithm (sampler) for a study, choosing from TPE, NSGA-II, Random, or Gaussian Process samplers to guide hyperparameter search.
Instructions
Set the sampler for the study. The sampler must be one of the following: - TPESampler - NSGAIISampler - RandomSampler - GPSampler
The default sampler for single-objective optimization is TPESampler.
The default sampler for multi-objective optimization is NSGAIISampler.
GPSampler is a Gaussian process-based sampler suitable for low-dimensional numerical optimization problems.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| study_name | Yes | ||
| sampler_name | No | The name of the sampler used in the study. | |
| directions | No | The optimization directions for each objective. | |
| metric_names | No | The metric names for each objective. |