def predict(self, X):
""" A reference implementation of a predicting function.
Parameters
----------
X : array-like of shape = [n_samples, n_features]
The input samples.
Returns
-------
y : array of shape = [n_samples]
Returns :math:`x^2` where :math:`x` is the first column of `X`.
"""
X = check_array(X)
return X[:, 0]**2
评论列表
文章目录