trainX = trainX.reshape((trainX.shape[0],28*28)).astype('float32') trainy = trainy.reshape((trainy.shape[0],28*28)).astype('float32')
Error is - ValueError Traceback (most recent call last)
<ipython-input-91-537b84233ef5> in <module>() 1 trainX = trainX.reshape((trainX.shape[0],28*28)).astype('float32') ----> 2 trainy = trainy.reshape((trainy.shape[0],28*28)).astype('float32')
ValueError: cannot reshape array of size 60000 into shape (60000,784)