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

Function loss

numpy_ml/plots/trees_plots.py:39–40  ·  view source on GitHub ↗
(yp, y)

Source from the content-addressed store, hash-verified

37
38 # initialize model
39 def loss(yp, y):
40 return accuracy_score(yp, y)
41
42 # initialize model
43 criterion = np.random.choice(["entropy", "gini"])

Callers 1

plotFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected