name 'val_loss' is not defined
smmsadrnezh opened this issue · 1 comments
smmsadrnezh commented
Hi, I tried to run "/LR-GCCF/code/train_amazons.py", but I got the following error:
243 testing_loader_loss.dataset.ng_sample()
244 test_loss=evaluate.metrics_loss(model,testing_loader_loss,batch_size)
--> 245 print(str_print_train+' val loss:'+str(val_loss)+' test loss:'+str(test_loss))
246 result_file.write(str_print_train+' val loss:'+str(val_loss)+' test loss:'+str(test_loss))
247 result_file.write('\n')
NameError: name 'val_loss' is not defined
newlei commented
My mistake, you can delete 'val_loss'