Deadline: June 17th, 20:00
This week, we take a look at Graph Neural Networks. Due to the more complex data structure these work on, they are quite a bit more difficult to set up than the kinds of architectures we have worked with so far. Accordingly, this will be more of a “first contact” rather than a deep dive, relying on pre-built libraries and tutorials. In particular, we will be exploring the Pytorch Geometric library and some of the dedicated tutorial notebooks.
A few general notes:
File -> Save a copy in Drive to get a copy of the notebook that you can modify and save.ConnectionRefused errors, please contact us.!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
by simply
!pip install torch_geometric
This assignment is conceptually very straightforward: Go through the Colab notebook tutorials on the Pytorch Geometric website. You will further be asked to implement a small number of additional steps, as well as answer several questions on the given code.
Answer all of these questions, either in a separate section in the respective notebooks (e.g. at the end), or in a separate text file. The “Investigation” part contains small tasks for you to add to the tutorial notebooks.
data.num_edges entry report 156 edges?data.train_mask is 0),
get the argmax over the classes and compute the accuracy of these predictions against the true labels data.y.GCN network compared to the MLP network?