#NEWLINE# def test_multiclass_logloss( ) : #NEWLINE# #INDENT# from .. metrics import multiclass_logloss #NEWLINE# act = np . array ( [ [ 0 , 1 , 0 ] , [ 1 , 0 , 0 ] , [ 0 , 0 , 1 ] ] ) #NEWLINE# pred = np . array ( [ [ 0.2 , 0.7 , 0.1 ] , [ 0.6 , 0.2 , 0.2 ] , [ 0.6 , 0.1 , 0.3 ] ] ) #NEWLINE# result = multiclass_logloss ( act , pred ) #NEWLINE# assert ( result == 0.6904911240102197 )