【Kares】train_loss /val_loss /train_acc/val_acc可视化
第一种:使用validation_split=0.2H=model.fit(trainX,trainY,batch_size=BS,epochs=EPOCHS,validation_split=0.2,shuffle=True)#plotthetraininglossandaccuracytraining_vis(H)#setthematplotlibbackendsofigurescanbesa