MCPcopy
hub / github.com/scikit-learn/scikit-learn / predict

Method predict

sklearn/utils/_testing.py:1243–1246  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

1241 return self
1242
1243 def predict(self, X):
1244 check_is_fitted(self)
1245 X = check_array(X)
1246 return np.ones(shape=(X.shape[0],)) * self._mean
1247
1248 def score(self, X, y):
1249 from sklearn.metrics import r2_score

Calls 2

check_is_fittedFunction · 0.90
check_arrayFunction · 0.90

Tested by

no test coverage detected