python编码器_Graph Auto-Encoders 在TensorFlow中实现图形自动编码器

Graph Auto-Encoders

This is a TensorFlow implementation of the (Variational) Graph Auto-Encoder model as described in our paper:

T. N. Kipf, M. Welling, Variational Graph Auto-Encoders, NIPS Workshop on Bayesian Deep Learning (2016)

Graph Auto-Encoders (GAEs) are end-to-end trainable neural network models for unsupervised learning, clustering and link prediction on graphs.

figure.png

GAEs have successfully been used for:

Link prediction in large-scale relational data: M. Schlichtkrull & T. N. Kipf et al., Modeling Relational Data with Graph Convolutional Networks (2017),

Matrix completion / recommendation with side information: R. Berg et al., Graph Convolutional Matrix Completion (2017).

GAEs are based on Graph Convolutional Networks (GCNs), a recent class of models for end-to-end (semi-)supervised learning on graphs:

A high-level introduction is given in our blog post:

Installation

python setup.py install

Requirements

TensorFlow (1.0 or later)

python 2.7

networkx

scikit-learn

scipy

Run the demo

python train.py

Data

In order to use your own data, you have to provide

an N by N adjacency matrix (N is the number of nodes), and

an N by D feature matrix (D is the number of features per node) -- optional

Have a look at the load_data() function in input_data.py for an example.

In this example, we load citation network data (Cora, Citeseer or Pubmed). The original datasets can be found here: http://linqs.cs.umd.edu/projects/projects/lbc/ and here (in a different format): https://github.com/kimiyoung/planetoid

You can specify a dataset as follows:

python train.py --dataset citeseer

(or by editing train.py)

Models

You can choose between the following models:

gcn_ae: Graph Auto-Encoder (with GCN encoder)

gcn_vae: Variational Graph Auto-Encoder (with GCN encoder)

Cite

Please cite our paper if you use this code in your own work:

@article{kipf2016variational,

title={Variational Graph Auto-Encoders},

author={Kipf, Thomas N and Welling, Max},

journal={NIPS Workshop on Bayesian Deep Learning},

year={2016}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值