Skip to content

Commit edcbf9c

Browse files
committed
All the modes work the same way
Add pip install in the beginning
1 parent aed218c commit edcbf9c

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

examples/kge-predict-transe-pyg-train.ipynb

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
{
44
"cell_type": "code",
55
"execution_count": null,
6-
"metadata": {},
6+
"outputs": [],
7+
"source": [
8+
"%pip install graphdatascience torch torch_geometric"
9+
],
10+
"metadata": {
11+
"collapsed": false
12+
}
13+
},
14+
{
15+
"cell_type": "code",
16+
"execution_count": null,
717
"outputs": [],
818
"source": [
919
"from graphdatascience import GraphDataScience\n",
@@ -12,7 +22,10 @@
1222
"from torch_geometric.data import Data, download_url\n",
1323
"from torch_geometric.nn import TransE\n",
1424
"import collections"
15-
]
25+
],
26+
"metadata": {
27+
"collapsed": false
28+
}
1629
},
1730
{
1831
"cell_type": "code",
@@ -300,7 +313,7 @@
300313
" \"EMBEDDING\": model.node_emb.weight[i].tolist()\n",
301314
" },\n",
302315
" )\n",
303-
" print(f\"Node embeddings uploading has finished\")"
316+
"print(f\"Node embeddings uploading has been finished\")"
304317
]
305318
},
306319
{

0 commit comments

Comments
 (0)