cnn-graph-classification
cnn-graph-classification copied to clipboard
Accuracy = 0
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"?
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.
thank you for your issue@robd2. I have met this problem just now.