Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions Chapter05/04_Graph_Neural_Networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,6 @@
"In Chapter 1 you learned how local and global graph properties can be extracted from graphs. Those properties represent the graph itself and bring important informations which can be useful for classification."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"id": "5k3sYIRJpMgb",
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Uninstalling stellargraph-1.2.1:\r\n",
" Successfully uninstalled stellargraph-1.2.1\r\n"
]
}
],
"source": [
"!pip install stellargraph"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -921,9 +900,6 @@
"metadata": {},
"outputs": [],
"source": [
"#!pip install fsspec==2024.3.1 # needed for PROTEINS download torch geometric\n",
"#!pip install torch_geometric\n",
"\n",
"import torch\n",
"from torch_geometric.datasets import TUDataset\n",
"from torch_geometric.data import DataLoader\n",
Expand Down Expand Up @@ -1031,9 +1007,6 @@
"metadata": {},
"outputs": [],
"source": [
"#!pip install torch==2.1.1 # needed for dgl\n",
"#!pip install dgl -f https://data.dgl.ai/wheels/torch-2.1/repo.html\n",
"\n",
"import dgl\n",
"import torch\n",
"import torch.nn.functional as F\n",
Expand Down
2 changes: 1 addition & 1 deletion Chapter05/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ chardet = "==5.2.0"
torch_geometric = "^2.5.2"
torchvision = "^0.16.0"
torchmetrics="^1.3.0"
# dgl = https://data.dgl.ai/wheels/torch-2.1/dgl-2.4.0-cp38-cp38-manylinux1_x86_64.whl
# Since 2024.06.27, DGL have stopped providing packages for Windows and MacOS. The latest version of available package is 2.2.1.
dgl = {url = "https://data.dgl.ai/wheels/torch-2.1/dgl-2.4.0-cp38-cp38-manylinux1_x86_64.whl"}

[build-system]
Expand Down
30 changes: 0 additions & 30 deletions Chapter07/02_Social_network_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,6 @@
"# Link prediction on social network using DGL"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "xqMpPrND8SeA"
},
"outputs": [],
"source": [
"# !pip uninstall -y dgl\n",
"# !pip install dgl==2.2.1 -f https://data.dgl.ai/wheels/torch-2.3/repo.html"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -478,24 +466,6 @@
"We will now replicate the example using another popular library for graph machine learning: Pytorch Geometric"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "_Smng0hRNtbZ",
"outputId": "21f31f79-a12c-49b2-9212-b0a5a0d901b6"
},
"outputs": [],
"source": [
"!pip install torch_geometric\n",
"\n",
"# Optional dependencies:\n",
"!pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.3.0+cpu.html"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 3 additions & 4 deletions Chapter07/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ torch = "^2.1.0"
torch_geometric = "^2.5.2"
torchvision = "^0.16.0"
torchmetrics="^1.3.0"
# torch-sparse = {version = "^0.6.18", source = "torch-wheels"}
torch-sparse = {url = "https://data.pyg.org/whl/torch-2.1.0%2Bcpu/torch_sparse-0.6.18%2Bpt21cpu-cp38-cp38-linux_x86_64.whl"}
pyg-lib = {url = "https://data.pyg.org/whl/torch-2.1.0%2Bcpu/pyg_lib-0.4.0%2Bpt21cpu-cp38-cp38-linux_x86_64.whl"}
python-louvain = "==0.16"
# communities = "==2.2.0"
nxt-gem = { git="https://github.com/palash1992/GEM.git", branch="master" }
# This is what is holding us back to python 3.8
stellargraph = "^1.2.1"
# Since 2024.06.27, DGL have stopped providing packages for Windows and MacOS. The latest version of available package is 2.2.1.
dgl = {url = "https://data.dgl.ai/wheels/torch-2.1/dgl-2.4.0-cp38-cp38-manylinux1_x86_64.whl"}
torch-sparse = {url = "https://data.pyg.org/whl/torch-2.1.0%2Bcpu/torch_sparse-0.6.18%2Bpt21cpu-cp38-cp38-linux_x86_64.whl"}
pyg-lib = {url = "https://data.pyg.org/whl/torch-2.1.0%2Bcpu/pyg_lib-0.4.0%2Bpt21cpu-cp38-cp38-linux_x86_64.whl"}

[build-system]
requires = ["poetry-core"]
Expand Down
Loading