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

Method score

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

Source from the content-addressed store, hash-verified

641 return Y_pred
642
643 def score(self, X, y):
644 y_pred = self.predict(X)
645 accuracy = np.sum(y == y_pred, axis=0) / len(y)
646 return accuracy
647
648
649class GradientBoostingRegressor(GradientBoostingDecisionTree):

Callers

nothing calls this directly

Calls 1

predictMethod · 0.95

Tested by

no test coverage detected