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

Method predict

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

Source from the content-addressed store, hash-verified

1194 return y_proba
1195
1196 def predict(self, X):
1197 y_proba = self.predict_proba(X)
1198 y_pred = y_proba.argmax(axis=1)
1199 return self.classes_[y_pred]
1200
1201 def score(self, X, y):
1202 from sklearn.metrics import accuracy_score

Callers 1

scoreMethod · 0.95

Calls 1

predict_probaMethod · 0.95

Tested by

no test coverage detected