Unverified Commit c46602d7 authored by Chuang, Yun-Shiuan's avatar Chuang, Yun-Shiuan Committed by GitHub
Browse files

[Doc] Fix a typo in the tutorial for link prediction (#2928)



Fix a typo in the tutorial for "Link Prediction using Graph Neural Networks".
Co-authored-by: default avatarJinjing Zhou <VoVAllen@users.noreply.github.com>
parent ae8dbe6d
...@@ -99,7 +99,7 @@ neg_u, neg_v = np.where(adj_neg != 0) ...@@ -99,7 +99,7 @@ neg_u, neg_v = np.where(adj_neg != 0)
neg_eids = np.random.choice(len(neg_u), g.number_of_edges()) neg_eids = np.random.choice(len(neg_u), g.number_of_edges())
test_neg_u, test_neg_v = neg_u[neg_eids[:test_size]], neg_v[neg_eids[:test_size]] test_neg_u, test_neg_v = neg_u[neg_eids[:test_size]], neg_v[neg_eids[:test_size]]
train_neg_u, train_neg_v = neg_u[neg_eids[test_size:]], neg_v[neg_eids[test_size:]] train_neg_u, train_neg_v = neg_u[neg_eids[train_size:]], neg_v[neg_eids[train_size:]]
###################################################################### ######################################################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment