Ваша модель нуждается в форме входных данных (?,64,64,1)
. Но форма ваших входных данных (40,)
, а каждое измерение (?,64,64)
. Так что вам нужно np.concatenate
и np.newaxis
.
# shape= (?,64,64,1)
x_train = np.concatenate(x_train,axis=0)[:,:,:, np.newaxis]
y_train = np.concatenate(y_train,axis=0)
x_test = np.concatenate(x_test,axis=0)[:,:,:, np.newaxis]
y_test = np.concatenate(y_test,axis=0)