#NEWLINE# def test_averaging_multilabel_all_zeroes( ) : #NEWLINE# #INDENT# y_true = np . zeros ( ( 20 , 3 ) ) #NEWLINE# y_pred = np . zeros ( ( 20 , 3 ) ) #NEWLINE# y_score = np . zeros ( ( 20 , 3 ) ) #NEWLINE# y_true_binarize = y_true #NEWLINE# y_pred_binarize = y_pred #NEWLINE# for name in METRICS_WITH_AVERAGING : #NEWLINE# #INDENT# ( yield ( check_averaging , name , y_true , y_true_binarize , y_pred , y_pred_binarize , y_score ) ) #NEWLINE# #UNINDENT# binary_metric = ( lambda y_true , y_score , average = 'macro' : _average_binary_score ( precision_score , y_true , y_score , average ) ) #NEWLINE# _check_averaging ( binary_metric , y_true , y_pred , y_true_binarize , y_pred_binarize , is_multilabel = True )