MCPcopy
hub / github.com/MingchaoZhu/DeepLearning / score

Method score

code/chapter7.py:417–420  ·  view source on GitHub ↗
(self, X, y)

Source from the content-addressed store, hash-verified

415 return y_pred
416
417 def score(self, X, y):
418 y_pred = self.predict(X)
419 accuracy = np.sum(y == y_pred, axis=0) / len(y)
420 return accuracy
421
422
423#####----Adaboost----#######

Callers

nothing calls this directly

Calls 1

predictMethod · 0.95

Tested by

no test coverage detected