This documentation is for scikit-learn version 0.10Other versions

Citing

If you use the software, please consider citing scikit-learn.

This page

8.9.8. sklearn.gaussian_process.regression_models.constant

sklearn.gaussian_process.regression_models.constant(x)

Zero order polynomial (constant, p = 1) regression model.

x –> f(x) = 1

Parameters :

x : array_like

An array with shape (n_eval, n_features) giving the locations x at which the regression model should be evaluated.

Returns :

f : array_like

An array with shape (n_eval, p) with the values of the regression model.