image1216×259 26.5 KB

I am just having trouble creating a graph for my loss values. The tutorial (https://pytorch.org/tutorials/beginner/finetuning_torchvision_models_tutorial.html) only shows how to create the graph for validation accuracy, however I wanted to plot the validation loss as well. The error I am getting occurs after I try to make a list for a variable called val_loss_history, similar to how they wrote val_acc_history.
Apologies in advance if this is confusing.