Solutions for Stanford CS224W (Machine Learning with Graphs) Colab, Winter 2021
http://snap.stanford.edu/class/cs224w-2020/
http://web.stanford.edu/class/cs224w/
斯坦福大学 图机器学习课程 CS224W Colab答案
- Colab 0 (No code needed - CS224W_Colab_0.ipynb was not working, as of 2022-01-17 Original codes were taken from Introduction: Hands-on Graph Neural Networks)
- Colab 1
- Colab 2
- Colab 3
- Colab 4
- Colab 5 (No code needed)
If you encounter problems about importing torch-geometric on Colab, you can go to https://colab.research.google.com/drive/1h3-vJGRVloF5zStxL5I0rSy4ZUPNsjy8 to get the correct installing commands for the corresponding version of torch and cuda, such as
import os
import torch
os.environ['TORCH'] = torch.__version__
print(torch.__version__)
!pip install -q torch-scatter -f https://data.pyg.org/whl/torch-${TORCH}.html
!pip install -q torch-sparse -f https://data.pyg.org/whl/torch-${TORCH}.html
!pip install -q git+https://github.com/pyg-team/pytorch_geometric.git