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

Function multi_logloss

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

Source from the content-addressed store, hash-verified

66
67
68def multi_logloss(y_true, y_pred):
69 return np.mean([-math.log(y_pred[i][y]) for i, y in enumerate(y_true)])
70
71
72class TestSklearn(unittest.TestCase):

Callers 1

test_multiclassMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected