Random seed for RandomLinkSplit? #3607
Answered
by
rusty1s
scottshufe
asked this question in
Q&A
-
Hi, PyG Team. Thanks for your excellent job first. I am using the RandomLinkSplit transformation to do some link prediction research, but I find that the parameters of this class don't contain a random_state option. So my question is how to set the random seed for RandomLinkSplit to obtain a fixed splitting? Look forward to your reply. And thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Nov 30, 2021
Replies: 1 comment 1 reply
-
We follow PyTorch convention here, in which you set a global seed at the top of your script, e.g.: from torch_geometric import seed_everything
seed_everything(42) Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
scottshufe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We follow PyTorch convention here, in which you set a global seed at the top of your script, e.g.:
Hope this helps!