Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name 'val_loss' is not defined #7

Open
smmsadrnezh opened this issue May 1, 2022 · 1 comment
Open

name 'val_loss' is not defined #7

smmsadrnezh opened this issue May 1, 2022 · 1 comment

Comments

@smmsadrnezh
Copy link

smmsadrnezh commented May 1, 2022

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
Copy link
Owner

newlei commented Sep 19, 2023

My mistake, you can delete 'val_loss'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants