diff --git a/Chapter05/04_Graph_Neural_Networks.ipynb b/Chapter05/04_Graph_Neural_Networks.ipynb index 271d478..f648c56 100644 --- a/Chapter05/04_Graph_Neural_Networks.ipynb +++ b/Chapter05/04_Graph_Neural_Networks.ipynb @@ -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": { @@ -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", @@ -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", diff --git a/Chapter05/pyproject.toml b/Chapter05/pyproject.toml index 5a3a39b..40827a3 100644 --- a/Chapter05/pyproject.toml +++ b/Chapter05/pyproject.toml @@ -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] diff --git a/Chapter07/02_Social_network_analysis.ipynb b/Chapter07/02_Social_network_analysis.ipynb index e346a1f..af2bb87 100644 --- a/Chapter07/02_Social_network_analysis.ipynb +++ b/Chapter07/02_Social_network_analysis.ipynb @@ -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, @@ -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, diff --git a/Chapter07/pyproject.toml b/Chapter07/pyproject.toml index ccf4220..e3cac0e 100644 --- a/Chapter07/pyproject.toml +++ b/Chapter07/pyproject.toml @@ -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"]