cnn-graph-classification icon indicating copy to clipboard operation
cnn-graph-classification copied to clipboard

Accuracy = 0

Open robd2 opened this issue 6 years ago • 2 comments

Thank you so much @giannisnik for publishing this code. Is a very interesting use of a CNN. I'm trying to reproduce some of your results but keep getting Accuracy = 0 measurements. Any thoughts on where to focus my debugging? Maybe related to the missing "best model"?

image

robd2 avatar Sep 13 '18 20:09 robd2

just FYI, I think I've narrowed it down to the logic in the lambda function: evaluation = lambda output, target: torch.sum(output.eq(target)) / target.size()[0]

Seems to be an issue with floor division if both operands have integer types. Maybe due to some recent PyTorch updates. Pull request submitted for proposed fix.

robd2 avatar Sep 14 '18 15:09 robd2

thank you for your issue@robd2. I have met this problem just now.

Wangshuaiia avatar Nov 27 '18 03:11 Wangshuaiia