skopt.utils
.cook_estimator¶
-
skopt.utils.
cook_estimator
(base_estimator, space=None, **kwargs)[source][source]¶ Cook a default estimator.
For the special base_estimator called “DUMMY” the return value is None. This corresponds to sampling points at random, hence there is no need for an estimator.
- Parameters
- base_estimator“GP”, “RF”, “ET”, “GBRT”, “DUMMY”
or sklearn regressor, default=”GP”
Should inherit from
sklearn.base.RegressorMixin
. In addition thepredict
method should have an optionalreturn_std
argument, which returnsstd(Y | x)`
along withE[Y | x]
. If base_estimator is one of [“GP”, “RF”, “ET”, “GBRT”, “DUMMY”], a surrogate model corresponding to the relevantX_minimize
function is created.- spaceSpace instance
Has to be provided if the base_estimator is a gaussian process. Ignored otherwise.
- kwargsdict
Extra parameters provided to the base_estimator at init time.