# compile the model# before the model is ready for training,# it needs a few more settingsmodel.compile(optimizer='adam',loss='categorical_crossentropy',metrics=['accuracy'])# Train the modelstack=model.fit(train_ds,epochs=100,validation_data=valid_ds)