nowlet' train the network for epochs listing training he model history model fit(partial_x_trainpartial_y_trainepochs= batch_size= validation_data=(x_valy_val)and finallylet' display its loss and accuracy curves (see figures and listing plot ing he raining and validat ion loss import matplotlib pyplot as plt loss history history['loss'val_loss history history['val_loss'epochs range( len(loss plt plot(epochsloss'bo'label='training loss'plt plot(epochsval_loss' 'label='validation loss'plt title('training and validation loss'plt xlabel('epochs'plt ylabel('loss'plt legend(plt show(listing plt clf(plot ing he raining and validat ion accuracy clears the figure acc history history['acc'val_acc history history['val_acc'plt plot(epochsacc'bo'label='training acc'plt plot(epochsval_acc' 'label='validation acc'plt title('training and validation accuracy'plt xlabel('epochs'plt ylabel('loss'plt legend(plt show(figure training and validation loss licensed to