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

Typo in train test split of Link Prediction tutorial #7839

Open
aaprasad opened this issue Nov 26, 2024 · 0 comments
Open

Typo in train test split of Link Prediction tutorial #7839

aaprasad opened this issue Nov 26, 2024 · 0 comments

Comments

@aaprasad
Copy link

📚 Documentation

Issue with link prediction tutorial

Hi, in the link prediction tutorial, it seems like there's a typo where you flipped the train and test sets.
for instance in "Preparing train and test set"

test_pos_u, test_pos_v = u[eids[:test_size]], v[eids[:test_size]]
train_pos_u, train_pos_v = u[eids[test_size:]], v[eids[test_size:]]
...
train_g = dgl.remove_edges(g, eids[:test_size])
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