def accuracy(self, final_acts, y):
        yp = np.argmax(final_acts, axis=1)
        if y.ndim == 2:
            y = np.argmax(y, axis=1)
        return np.mean(yp == y)*100
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/SoftmaxNet.accuracy/original