---
# System prepended metadata

title: GNN Materials
tags: [Master, Learn]

---

# GNN Materials
:::info
Common task for GNN:
1. Node Classification
2. Edge Prediction
3. Graph Classification
> Feel free to refer my hands-on practice repo: [gnn-practice](https://github.com/LittleFish-Coder/gnn-practice)
:::

## A Gentle Introduction to Graph Neural Networks
<font color="red">(Must Read)</font>
https://distill.pub/2021/gnn-intro/
https://youtu.be/sejA2PtCITw
## PyTorch Official Colab and Tutorials

https://pytorch-geometric.readthedocs.io/en/latest/get_started/colabs.html

The doc contains 3 parts:
1. Colab notebooks to GNN (Play this first)
2. CS224
3. PyTorch Geometric Hands-on Project

## Quick Preview of GNN
<iframe width="560" height="315" src="https://www.youtube.com/embed/Obbr5TdD3Bo?si=Xy4_w0H_KBFuakmi" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

## Karen Medium (Optional Reading)
:::spoiler GNN Notes
1. [【邁向圖神經網絡GNN】Part1:圖數據的基本元素與應用](https://karenkaods.medium.com/邁向圖神經網絡gnn-part1-圖數據的基本元素與應用-c3856a7f729d)

2. [【邁向圖神經網絡GNN】Part2: 使用PyTorch構建圖形結構的概念與實作](https://karenkaods.medium.com/邁向圖神經網絡gnn-part2-使用pytorch構建圖形結構的全過程-1c16bc7880a2)

3. [【邁向圖神經網絡GNN】Part3: 圖神經網絡的核心-訊息傳遞機制](https://karenkaods.medium.com/邁向圖神經網絡gnn-part3-圖神經網絡的核心-消息傳遞機制-b3981892b8f3)

4. [【邁向圖神經網絡GNN】Part4: 實作圖神經網路訊息傳遞機制](https://karenkaods.medium.com/邁向圖神經網絡gnn-part4-實作圖神經網路訊息傳遞機制-2c210910b761)

5. [【邁向圖神經網絡GNN】Part5: 建構 GNN model 實作 Cora 資料集結點分類任務](https://karenkaods.medium.com/邁向圖神經網絡gnn-part5-建構-gnn-model-實作-cora-資料集結點分類任務-6cdac24e7fbf)
:::

## Installation
官方安裝教學: https://pytorch-geometric.readthedocs.io/en/latest/install/installation.html
或是參考我的範本: [github.com/LittleFish-Coder/gnn-practice/0_installation.ipynb](https://github.com/LittleFish-Coder/gnn-practice/blob/master/official-example/0_installation.ipynb)

## Downstream Tasks
below lists the common graph-related task 

### Fake News Detection
> Node Classification

我跟上緣的cowork: https://github.com/LittleFish-Coder/fake-news-detection