Apr-20-2022, 07:44 AM
reshape is a methode under numpy's library and as the error printed in your terminal the object list has no method defined as reshape
import numpy as np
w_train=np.array(x_train)
then you can simply use the reshape function without any error :
w_train=x_train.reshape((2404,28,224,224,3))
you can check the reshape characteristics in this link https://www.geeksforgeeks.org/reshape-numpy-array/ for more understanding of the method
import numpy as np
w_train=np.array(x_train)
then you can simply use the reshape function without any error :
w_train=x_train.reshape((2404,28,224,224,3))
you can check the reshape characteristics in this link https://www.geeksforgeeks.org/reshape-numpy-array/ for more understanding of the method