图深度学习Deep Learning on Graphs

图深度学习Deep Learning on Graphs

一本全面讲解图深度学的专著,中英版皆有,官方网站:cse.msu.edu/~mayao4/dlg

英文预印版链接:cse.msu.edu/~mayao4/dlg

附注:关于图神经网络的开源工具

开源特征选择库:scikit-feature: Feature Selection @ ASU

Python语言图数据分析和可视化库:networkX、graph-tool和SNAP

ArthurWilson:1 NetworkX概述

小帅:Python——利用 graphtool 进行图的可视化处理


关于图神经网络开源框架,例如,基于PyTorch开发的PyG(PyTorch Geometry)[1], 同时支持Tensorflow和PyTorch的DGL(Deep Graph Library)[2]

更详细的比较可阅读Houye:「紫禁之巅」四大图神经网络框架


第一次尝试安装PyG

PyG的Github地址:rusty1s/pytorch_geometric

由于有我使用的PyTorch1.7.0版本,因此安装PyG有需要安装相应的PyG版本,即PyG1.7.0版本。

安装指令如下:

pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.7.0+${CUDA}.html
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-1.7.0+${CUDA}.html
pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-1.7.0+${CUDA}.html
pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.7.0+${CUDA}.html
pip install torch-geometric

需要将指令中的${CUDA}替换为你的CUDA版本,我的是CUDA10.1,

因此指令为:

pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.7.0+cu101.html
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-1.7.0+cu101.html
pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-1.7.0+cu101.html
pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.7.0+cu101.html
pip install torch-geometric

测试

安装成功。

参考

  1. ^Fey M, Lenssen J E. Fast graph representation learning with PyTorch Geometric[C]. ICLR Workshop on Representation Learning on Graphs and Maniflods, 2019. https://github.com/rusty1s/pytorch_geometric
  2. ^Wang M, Yu L, Zheng D, et al. Deep graph library: Towards efficient and scalable deep learning on graphs[J]. arXiv preprint arXiv:1909.01315, 2019. https://www.dgl.ai/
编辑于 2021-05-23 10:00