Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
fd980d53
"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "79ceccef434569eeff7cc3fb3cc0d80059e23a88"
Unverified
Commit
fd980d53
authored
Dec 21, 2023
by
Rhett Ying
Committed by
GitHub
Dec 21, 2023
Browse files
[doc] add tqdm for link prediction tutorial (#6802)
parent
02f8b6ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
notebooks/stochastic_training/link_prediction.ipynb
notebooks/stochastic_training/link_prediction.ipynb
+2
-2
No files found.
notebooks/stochastic_training/link_prediction.ipynb
View file @
fd980d53
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
"datapipe = datapipe.transform(partial(gb.exclude_seed_edges, include_reverse_edges=True))\n",
"datapipe = datapipe.transform(partial(gb.exclude_seed_edges, include_reverse_edges=True))\n",
"datapipe = datapipe.fetch_feature(feature, node_feature_keys=[\"feat\"])\n",
"datapipe = datapipe.fetch_feature(feature, node_feature_keys=[\"feat\"])\n",
"datapipe = datapipe.copy_to(device)\n",
"datapipe = datapipe.copy_to(device)\n",
"train_dataloader = gb.DataLoader(datapipe
, num_workers=0
)"
"train_dataloader = gb.DataLoader(datapipe)"
],
],
"metadata": {
"metadata": {
"id": "LZgXGfBvYijJ"
"id": "LZgXGfBvYijJ"
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
"\n",
"\n",
"logits = []\n",
"logits = []\n",
"labels = []\n",
"labels = []\n",
"for step, data in enumerate(eval_dataloader):\n",
"for step, data in
tqdm.tqdm(
enumerate(eval_dataloader)
)
:\n",
" # Get node pairs with labels for loss calculation.\n",
" # Get node pairs with labels for loss calculation.\n",
" compacted_pairs, label = data.node_pairs_with_labels\n",
" compacted_pairs, label = data.node_pairs_with_labels\n",
"\n",
"\n",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment