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

Error returning results in main.evaluate2 #2

Open
xjc6666 opened this issue Jul 19, 2023 · 0 comments
Open

Error returning results in main.evaluate2 #2

xjc6666 opened this issue Jul 19, 2023 · 0 comments

Comments

@xjc6666
Copy link

xjc6666 commented Jul 19, 2023

The parameter val_loader2 passed in when using
acc, loss_val, precision, recall, auc, sp = evaluate2(val_loader2, net, epoch=epoch_up) in line 271 has a batch_size of 1. Therefore, in line 245, since p has only 1 dimension, it cannot calculate precision_.compute()[1].item(), recall_.compute()[1].item() and reports an error

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

1 participant