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

Function multi_logloss

tests/python_package_test/test_engine.py:31–32  ·  view source on GitHub ↗
(y_true, y_pred)

Source from the content-addressed store, hash-verified

29
30
31def multi_logloss(y_true, y_pred):
32 return np.mean([-math.log(y_pred[i][y]) for i, y in enumerate(y_true)])
33
34
35def top_k_error(y_true, y_pred, k):

Calls

no outgoing calls

Tested by

no test coverage detected