syne_tune.optimizer.schedulers.searchers.bayesopt.sklearn.estimator module
- class syne_tune.optimizer.schedulers.searchers.bayesopt.sklearn.estimator.SKLearnEstimator[source]
Bases:
object
Base class scikit-learn based estimators, giving rise to surrogate models for Bayesian optimization.
- fit(X, y, update_params)[source]
Implements
fit_from_state()
, given transformed data. Here,y
is normalized (zero mean, unit variance) iffnormalize_targets == True
.- Parameters:
X (
ndarray
) – Feature matrix, shape(n_samples, n_features)
y (
ndarray
) – Target values, shape(n_samples,)
update_params (
bool
) – Should model (hyper)parameters be updated? Ignored if estimator has no hyperparameters
- Return type:
- Returns:
Predictor, wrapping the posterior state