How to plot epoch vs. val_acc and epoch vs. val_loss graph in CNN?
问题 I used a convolutional neural network (CNN) for training a dataset. Here I get epoch, val_loss, val_acc, total loss, training time, etc. as a history. If I want to calculate the average of accuracy, then how to access val_acc, and how to plot epoch vs. val_acc and epoch vs. val_loss graph? convnet = input_data(shape=[None, IMG_SIZE, IMG_SIZE, 3], name='input') convnet = conv_2d(convnet, 32, 3, activation='relu') convnet = max_pool_2d(convnet, 3) convnet = conv_2d(convnet, 64, 3, activation=