Code Monkey home page Code Monkey logo

deep_learning's Introduction

deep_learning

TJU deep_learning course project

实验环境

python3.9
Torch = 1.10.0

需要的依赖

numpy
scipy
hyperopt
torch_geometric
tensorboard

使用pytorch-geometric加载数据集,pyg安装方法:

pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html
pip install torch-sparse -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html
pip install torch-geometric

其中${TORCH}和${CUDA}分别对应相应软件的版本,通过以下命令查看版本

python -c "import torch; print(torch.__version__)"
python -c "import torch; print(torch.version.cuda)"

数据集下载

数据集 来源 节点 特征 标签
Cora “Collective classification in network data,” AI magazine,2008 1 2708 5429 1433 7
Citeseer “Collective classification in network data,” AI magazine,2008 1 3327 4732 3703 6
Pubmed “Collective classification in network data,” AI magazine,2008 1 19717 44338 500 3

以上数据集均可以使用pyg以统一形式加载,无需特别下载。

原始数据位于raw_data下,下载链接

citeseer

cora

Pubmed

运行方式

在GNN目录下直接运行train.py,按照默认参数设置训练

python train.py

详细的参数设置执行

python tran.py --help

实验结果

SGC

数据集 loss Accuracy Time(s)
Cora 0.7997 0.8130 0.7400
Citeseer 1.0555 0.7120 0.8151
Pubmed 0.5718 0.7950 0.4131

GCN

数据集 loss Accuracy Time(s)
Cora 0.7871 0.8190 6.3408
Citeseer 1.0324 0.7100 18.3622
Pubmed 0.5956 0.7810 24.6462

deep_learning's People

Contributors

yiqun24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.