MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / binary_error

Function binary_error

tests/python_package_test/test_sklearn.py:60–61  ·  view source on GitHub ↗
(y_true, y_pred)

Source from the content-addressed store, hash-verified

58
59
60def binary_error(y_true, y_pred):
61 return np.mean((y_pred > 0.5) != y_true)
62
63
64def multi_error(y_true, y_pred):

Calls

no outgoing calls

Tested by

no test coverage detected