def test_singleton_batch(self):
        y_true = np.ones((10,))
        y_true_compare = np.ones((1,10))
        y_prob = - np.ones((1, 10))
        assert_equals(accuracy.hamming_accuracy_from_blob(y_true, y_prob),
                      accuracy.hamming_accuracy_from_blob(y_true_compare, y_prob))
In the case of a batch size of 1, y_true has shape (number_of_classes,) and accuracy should be correctly computed.
dataset/ETHPy150Open kashefy/nideep/nideep/eval/test_accuracy.py/TestHammingAccuracyFromBlob.test_singleton_batch