Replies: 1 comment 1 reply
-
Yes, you can just do that via a threshold: out = model(...)
pred = out > 0.0 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi PyG Community,
Recently, I was running an example from the PyG examples, ogbn_proteins_deepgcn(https://github.com/pyg-team/pytorch_geometric/blob/master/examples/ogbn_proteins_deepgcn.py). I found that when evaluating 'rocauc', it used the prediction score of the model, that is, 'out[mask]'. But now I want to convert this prediction score into prediction classification label. That is to say, change the value of 'y_pred' to be the same as that of 'y_true'. Is there any way to implement it?
Beta Was this translation helpful? Give feedback.
All reactions