Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
31
def
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
35
def
top_k_error(y_true, y_pred, k):
Callers
4
test_multiclass
Method · 0.70
test_multiclass_rf
Method · 0.70
test_multiclass_prediction_early_stopping
Method · 0.70
test_continue_train_multiclass
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected