predict

predict(X, return_std=False, return_cov=False)

Predicts with the GP, taking inputs in physical units.

Same as GaussianProcessRegressor.predict, except that X is standardised with the fitted scaling first.

Parameters

Name Type Description Default
X array - like Query inputs in physical units, shape (n_points, n_features). required
return_std bool Also return the predictive standard deviation. Defaults to False. False
return_cov bool Also return the predictive covariance. Defaults to False. False

Returns

Name Type Description
np.ndarray | tuple: The predictive mean, shape (n_points,), plus the standard deviation or covariance if requested.