MCPcopy Index your code
hub / github.com/ddbourgin/numpy-ml / grad

Method grad

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

Source from the content-addressed store, hash-verified

38 return MeanBaseEstimator()
39
40 def grad(self, y, y_pred):
41 return -2 / len(y) * (y - y_pred)
42
43 def line_search(self, y, y_pred, h_pred):
44 # TODO: revise this

Callers 1

plot_activationsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected