Some infill criteria have parameters that are dependent on values in the parameter set, design, used learner or other control settings. To actually set these default values, this function is called, which returns a fully initialized [MBOInfillCrit]. This function is mainly for internal use. If a custom infill criterion is created, it may be required to create a separate method initCrit.InfillCritID where ID is the id of the custom MBOInfillCrit.

initCrit(crit, fun, design, learner, control)

Arguments

crit

[MBOInfillCrit]
Uninitialized infill criterion.

fun

[smoof_function]
Fitness function to optimize.

design

Sampling plan.

learner

[Learner]
Regression learner from mlr, which is used as a surrogate to model our fitness function.

control

[MBOControl]
MBO control object.

Value

[MBOInfillCrit]