MCPcopy
hub / github.com/ddbourgin/numpy-ml / grad

Method grad

numpy_ml/trees/losses.py:60–62  ·  view source on GitHub ↗
(self, y, y_pred)

Source from the content-addressed store, hash-verified

58 return ClassProbEstimator()
59
60 def grad(self, y, y_pred):
61 eps = np.finfo(float).eps
62 return -y * 1 / (y_pred + eps)
63
64 def line_search(self, y, y_pred, h_pred):
65 raise NotImplementedError

Callers 1

fitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected