MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / __call__

Method __call__

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

Source from the content-addressed store, hash-verified

32
33class MSELoss:
34 def __call__(self, y, y_pred):
35 return np.mean((y - y_pred) ** 2)
36
37 def base_estimator(self):
38 return MeanBaseEstimator()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected