MCPcopy Index your code
hub / github.com/scikit-learn/scikit-learn / score

Method score

sklearn/utils/_testing.py:1201–1204  ·  view source on GitHub ↗
(self, X, y)

Source from the content-addressed store, hash-verified

1199 return self.classes_[y_pred]
1200
1201 def score(self, X, y):
1202 from sklearn.metrics import accuracy_score
1203
1204 return accuracy_score(y, self.predict(X))
1205
1206 def __sklearn_tags__(self):
1207 return Tags(

Callers

nothing calls this directly

Calls 2

predictMethod · 0.95
accuracy_scoreFunction · 0.90

Tested by

no test coverage detected