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

Function mse

numpy_ml/trees/dt.py:215–219  ·  view source on GitHub ↗

Mean squared error for decision tree (ie., mean) predictions

(y)

Source from the content-addressed store, hash-verified

213
214
215def mse(y):
216 """
217 Mean squared error for decision tree (ie., mean) predictions
218 """
219 return np.mean((y - np.mean(y)) ** 2)
220
221
222def entropy(y):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected