def binarize_labels(self, y):
        binary_y = np.zeros((len(y), self.num_classes))
        for c in xrange(self.num_classes):
            binary_y[y==c,c] = 1

        return binary_y
consistent invalid indexer message
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/SoftmaxNet.binarize_labels--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._invalid_indexer