optuna.integration.botorch.logei_candidates_func
- optuna.integration.botorch.logei_candidates_func(train_x, train_obj, train_con, bounds, pending_x)[source]
Log Expected Improvement (LogEI).
The default value of
candidates_funcinBoTorchSamplerwith single-objective optimization for non-constrained problems.- Parameters:
train_x (Tensor) – Previous parameter configurations. A
torch.Tensorof shape(n_trials, n_params).n_trialsis the number of already observed trials andn_paramsis the number of parameters.n_paramsmay be larger than the actual number of parameters if categorical parameters are included in the search space, since these parameters are one-hot encoded. Values are not normalized.train_obj (Tensor) – Previously observed objectives. A
torch.Tensorof shape(n_trials, n_objectives).n_trialsis identical to that oftrain_x.n_objectivesis the number of objectives. Observations are not normalized.train_con (Tensor | None) – Objective constraints. This option is not supported in
logei_candidates_funcand must beNone.bounds (Tensor) – Search space bounds. A
torch.Tensorof shape(2, n_params).n_paramsis identical to that oftrain_x. The first and the second rows correspond to the lower and upper bounds for each parameter respectively.pending_x (Tensor | None) – Pending parameter configurations. A
torch.Tensorof shape(n_pending, n_params).n_pendingis the number of the trials which are already suggested all their parameters but have not completed their evaluation, andn_paramsis identical to that oftrain_x.
- Returns:
Next set of candidates. Usually the return value of BoTorch’s
optimize_acqf.- Return type:
Note
Added in v3.3.0 as an experimental feature. The interface may change in newer versions without prior notice. See https://github.com/optuna/optuna/releases/tag/v3.3.0.