0

Here I am using Fahion-mnist data set. Its already divided into test and train. I want each img to be a 28x28x3 shape.

X_train shape:  (60000, 784)

X_test shape:  (10000, 784)

# Reshaping
X_train = X_train.values.reshape(-1,28,28,3) 

print("X_train shape: ",X_train.shape) 

**output:** (20000, 28, 28, 3)

Works ok BUT !!

X_test = X_test.values.reshape(-1,28,28,3)
print("X_test shape: ",X_test.shape)

ValueError                                Traceback (most recent call last)
<ipython-input-110-9f1d9f52d152> in <module>()
1 X_test = X_test.values.reshape(-1,28,28,3)
2 print("X_test shape: ",X_test.shape)

 **ValueError: cannot reshape array of size 7840000 into shape (28,28,3)**

pls pls help me

I am following this, but i have removed the gray Scale part. https://www.kaggle.com/orhansertkaya/convolutional-neural-network-cnn-fashion-mnist

Exotic Me
  • 17
  • 1
  • 8

0 Answers0