Class or Function Names
- NSGAIISampler
Example
import optuna
from optuna.samplers import NSGAIISampler
def objective(trial):
x = trial.suggest_float("x", -5, 5)
return x**2
sampler = NSGAIISampler()
study = optuna.create_study(sampler=sampler)
study.optimize(objective, n_trials=10)
Others
See the documentation for more details.