This project implements a Graph Convolutional Network (GCN) to classify papers in the Cora citation network dataset using PyTorch Geometric. The implementation is provided in a Jupyter Notebook.
- Implements a GCN model for node classification
- Uses the Cora dataset from PyTorch Geometric
- Visualizes training loss and node embeddings
- Python 3.x
- Jupyter Notebook
- PyTorch
- PyTorch Geometric
- Matplotlib
- Seaborn
-
Install the required packages:
pip install jupyter torch torch_geometric matplotlib seaborn
-
Start Jupyter Notebook:
jupyter notebook
-
Open the
Cora_gnn.ipynb
file in the Jupyter Notebook interface. -
Run all cells in the notebook to train the model and generate visualizations.
- Test Accuracy: 0.703
- The notebook generates and displays:
- A plot of the training loss
- A GIF showing the evolution of node embeddings
- Experiment with different GNN architectures
- Apply to other citation network datasets
This project is open-source and available under the MIT License.