This repo contains a collection of tutorials on some basic concepts regarding neural graph processing. In particular:
gnn.ipynbaims at presenting some basic concepts about graph neural networks and how PyTorch Geometric (PyG) can be used to define custom GNN layers. Here, the graph attention network (GAT) is written from scratch starting from the message passing framework of PyG and applied on a semi-supervised node classification task.stgnn.ipynbfocuses instead on the use of graph neural networks for time series forecasting. Relying on Torch Spatiotemporal (tsl), we try to forecast the air quality in China recorded by a network of sensors over time.graph-shift.ipynbfocuses on graph-shift operators and how they can be used to obtain graph convolutional networks.
- Create a dedicated python envoronment, e.g with 
conda create --name gnn_tutorial python=3.10. - Deactivate any current environment with 
conda deactivateand activate the newly created one withconda activate gnn_tutorial. - Install the requirements with 
bash requirements.sh. These installations assume a CUDA-enabled environment. To use a CPU, change the suffixcu121withcpuin the commands.