Skip to content

Commit 72d9aa0

Browse files
Added installation commands
1 parent a7dac68 commit 72d9aa0

16 files changed

Lines changed: 533 additions & 8308 deletions

File tree

Tutorial1/Tutorial1.ipynb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"!pip install torch-scatter -f https://data.pyg.org/whl/torch-1.9.0+cu111.html\n",
10+
"!pip install torch-sparse -f https://data.pyg.org/whl/torch-1.9.0+cu111.html\n",
11+
"!pip install torch-geometric"
12+
]
13+
},
314
{
415
"cell_type": "code",
516
"execution_count": null,

Tutorial11/Tutorial11.ipynb

Lines changed: 42 additions & 4574 deletions
Large diffs are not rendered by default.

Tutorial12/Tutorial12 GAE for link prediction.ipynb

Lines changed: 24 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 6,
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"!pip install torch-scatter -f https://data.pyg.org/whl/torch-1.9.0+cu111.html\n",
10+
"!pip install torch-sparse -f https://data.pyg.org/whl/torch-1.9.0+cu111.html\n",
11+
"!pip install torch-geometric"
12+
]
13+
},
14+
{
15+
"cell_type": "code",
16+
"execution_count": null,
617
"metadata": {},
718
"outputs": [],
819
"source": [
@@ -30,7 +41,7 @@
3041
},
3142
{
3243
"cell_type": "code",
33-
"execution_count": 7,
44+
"execution_count": null,
3445
"metadata": {},
3546
"outputs": [],
3647
"source": [
@@ -42,17 +53,9 @@
4253
},
4354
{
4455
"cell_type": "code",
45-
"execution_count": 8,
56+
"execution_count": null,
4657
"metadata": {},
47-
"outputs": [
48-
{
49-
"name": "stdout",
50-
"output_type": "stream",
51-
"text": [
52-
"Data(edge_index=[2, 10556], test_mask=[2708], train_mask=[2708], val_mask=[2708], x=[2708, 1433], y=[2708])\n"
53-
]
54-
}
55-
],
58+
"outputs": [],
5659
"source": [
5760
"# load the Cora dataset\n",
5861
"dataset = 'Cora'\n",
@@ -64,17 +67,9 @@
6467
},
6568
{
6669
"cell_type": "code",
67-
"execution_count": 9,
70+
"execution_count": null,
6871
"metadata": {},
69-
"outputs": [
70-
{
71-
"name": "stdout",
72-
"output_type": "stream",
73-
"text": [
74-
"Data(test_neg_edge_index=[2, 527], test_pos_edge_index=[2, 527], train_neg_adj_mask=[2708, 2708], train_pos_edge_index=[2, 8976], val_neg_edge_index=[2, 263], val_pos_edge_index=[2, 263], x=[2708, 1433])\n"
75-
]
76-
}
77-
],
72+
"outputs": [],
7873
"source": [
7974
"# use train_test_split_edges to create neg and positive edges\n",
8075
"data.train_mask = data.val_mask = data.test_mask = data.y = None\n",
@@ -98,7 +93,7 @@
9893
},
9994
{
10095
"cell_type": "code",
101-
"execution_count": 11,
96+
"execution_count": null,
10297
"metadata": {},
10398
"outputs": [],
10499
"source": [
@@ -125,7 +120,7 @@
125120
},
126121
{
127122
"cell_type": "code",
128-
"execution_count": 12,
123+
"execution_count": null,
129124
"metadata": {},
130125
"outputs": [],
131126
"source": [
@@ -143,7 +138,7 @@
143138
},
144139
{
145140
"cell_type": "code",
146-
"execution_count": 13,
141+
"execution_count": null,
147142
"metadata": {},
148143
"outputs": [],
149144
"source": [
@@ -199,26 +194,9 @@
199194
},
200195
{
201196
"cell_type": "code",
202-
"execution_count": 14,
197+
"execution_count": null,
203198
"metadata": {},
204-
"outputs": [
205-
{
206-
"name": "stdout",
207-
"output_type": "stream",
208-
"text": [
209-
"Epoch: 010, Loss: 0.6837, Val: 0.7552, Test: 0.7562\n",
210-
"Epoch: 020, Loss: 0.6423, Val: 0.7552, Test: 0.7562\n",
211-
"Epoch: 030, Loss: 0.5490, Val: 0.7935, Test: 0.8021\n",
212-
"Epoch: 040, Loss: 0.5108, Val: 0.8210, Test: 0.8486\n",
213-
"Epoch: 050, Loss: 0.4894, Val: 0.8455, Test: 0.8712\n",
214-
"Epoch: 060, Loss: 0.4656, Val: 0.8637, Test: 0.8966\n",
215-
"Epoch: 070, Loss: 0.4585, Val: 0.8808, Test: 0.9000\n",
216-
"Epoch: 080, Loss: 0.4518, Val: 0.8864, Test: 0.9084\n",
217-
"Epoch: 090, Loss: 0.4458, Val: 0.8905, Test: 0.9093\n",
218-
"Epoch: 100, Loss: 0.4501, Val: 0.8920, Test: 0.9111\n"
219-
]
220-
}
221-
],
199+
"outputs": [],
222200
"source": [
223201
"\n",
224202
"best_val_perf = test_perf = 0\n",
@@ -243,7 +221,7 @@
243221
},
244222
{
245223
"cell_type": "code",
246-
"execution_count": 15,
224+
"execution_count": null,
247225
"metadata": {},
248226
"outputs": [],
249227
"source": [
@@ -282,7 +260,7 @@
282260
"name": "python",
283261
"nbconvert_exporter": "python",
284262
"pygments_lexer": "ipython3",
285-
"version": "3.8.5"
263+
"version": "3.8.3"
286264
}
287265
},
288266
"nbformat": 4,

Tutorial12/Tutorial12 Node2Vec for label prediction.ipynb

Lines changed: 56 additions & 246 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)