#NEWLINE# def test_singleton_batch( self ) : #NEWLINE# #INDENT# '\n        In the case of a batch size of 1, y_true has shape (number_of_classes,) and accuracy should be correctly computed.\n        ' #NEWLINE# y_true = np . ones ( ( 10 , ) ) #NEWLINE# y_true_compare = np . ones ( ( 1 , 10 ) ) #NEWLINE# y_prob = ( - np . ones ( ( 1 , 10 ) ) ) #NEWLINE# assert_equals ( accuracy . hamming_accuracy_from_blob ( y_true , y_prob ) , accuracy . hamming_accuracy_from_blob ( y_true_compare , y_prob ) )