Basic Info
Link
DeepInf: Social Influence Prediction with Deep Learning
Author
- Jiezhong Qiu
- Jian Tang
- Hao Ma
- Yuxiao Dong
- Kuansan Wang
- Jie Tang
Method(s)
Architecture
(a): Raw input which consists of a mini-batch of B instances; Each instance is a sub-network comprised n users who are sampled from the whole network. (b): An embedding layer which maps each user to a D-dimensional representation. (c): An Instance Normalization Layer which normalizes user’s embedding. (d): The formal input layer which concatenates together network embedding and other features. (e) A GCN and GAT Layer. (f) and (g) Compare model output and ground truth, we get the negative log likelihood loss. In this example, ego user v was finally activated (marked as black)
Reproduce
代码仓库
数据导入
对于npy格式的数据
使用numpy的load导入
1 | import numpy as np |
对于emb_64的数据
这个我不了解格式,参考了baseline中的代码
1 | def load_w2v_feature(file, max_idx=0): |
邻接矩阵
针对邻接矩阵,自身到自己的距离可以设为1,因此可以用单位矩阵加上数据中的adjacency matrix
1 | adjacency_matrix_filename = 'adjacency_matrix.npy' |