# NetworkEmbeddingPytorch
Pytorch implementation of some Network Embedding methods.
## For Cora and Tencent dataset
### Methods
- DeepWalk
- LINE
- Node2Vec
- GraRep
### Train
Change the arguments in the scripts before runing the code.
- DeepWalk
```Python
python3 DeepWalk.py
```
- LINE
```Python
python3 LINE.py
```
- Node2Vec
```Python
python3 Node2Vec.py
```
- GraRep
```Python
python3 GraRep.py
```
### Test
- Logistic Regression Classification
```Python
python3 LRclassifier.py # pytorch
(python3 LR.py) # scikit-learn
```
- Link Prediction
```Python
python3 LinkPredictor.py
```
## Requirements
- Python (3.5.2)
- PyTorch (0.3.0)
## Reference and Citing
Implementation refers to some public implementations in other languages or other frameworks:
- DeepWalk: Python[https://github.com/phanein/deepwalk],
- LINE: C/C++[https://github.com/tangjianpku/LINE], Python/TensorFlow[https://github.com/snowkylin/line]
- node2vec: Python[https://github.com/aditya-grover/node2vec], Python[https://github.com/thunlp/OpenNE]
- GraRep: Matlab[https://github.com/ShelsonCao/GraRep], Python[https://github.com/thunlp/OpenNE]
If you find the implementation useful in your research, please cite the following papers:
- DeepWalk: Online Learning of Social Representations. Bryan Perozzi, Rami Al-Rfou, Steven Skiena. KDD 2014.
- LINE: Large-scale Information Network Embedding. Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, Qiaozhu Me. WWW 2015.
- node2vec: Scalable Feature Learning for Networks. Aditya Grover, Jure Leskovec. KDD 2016.
- GraRep: Learning Graph Representations with Global Structural Information. Shaosheng Cao, Wei Lu, Qiongkai Xu. CIKM 2015.
## Author
You're free to use the implementation. But if you find any bug, please kindly let me know in Issues. Thanks!
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
NetworkEmbeddingPytorch Pytorch实现一些网络嵌入方法。 对于Cora和腾讯数据集 方法 深度漫步 线 Node2Vec 格拉普 火车 在运行代码之前,请更改脚本中的参数。 深度漫步 python3 DeepWalk . py 线 python3 LINE . py Node2Vec python3 Node2Vec . py 格拉普 python3 GraRep . py 测试 逻辑回归分类 python3 LRclassifier . py # pytorch ( python3 LR . py ) # scikit-learn 链接预测 python3 LinkPredictor . py 要求 Python(3.5.2) PyTorch(0.3.0) 参考和引用 实现是指使用其他语言或其他框架进行
资源详情
资源评论
资源推荐
收起资源包目录
NetworkEmbeddingPytorch-master.zip (19个子文件)
NetworkEmbeddingPytorch-master
LINE.py 8KB
Node2Vec.py 5KB
data
tencent
val_edges.npy 195KB
test_edges.npy 391KB
test_edges_false.npy 781KB
train_edges.npy 3.24MB
README 1KB
adj_train.npz 991KB
val_edges_false.npy 391KB
cora
cora.content 7.46MB
cora.cites 68KB
README 2KB
LRclassifier.py 4KB
LR.py 1KB
DeepWalk.py 3KB
LinkPredictor.py 1KB
README.md 2KB
GraRep.py 4KB
data_utils_cora.py 4KB
共 19 条
- 1
止蚀
- 粉丝: 22
- 资源: 4508
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 聊天系统(java+applet).zip
- 毕业设计:基于SSM的mysql-高校学生请假管理系统(源码 + 数据库 + 说明文档)
- 博客系统(struts+hibernate+spring).rar
- c语言学生成绩管理系统源码.zip
- 毕业设计:基于SSM的mysql-网约车用户服务平台(源码 + 数据库 + 说明文档)
- 内容管理系统(hibernate3+struts2+spring2)130224.rar
- 基于Java的班级管理系统课程设计源码
- 内容管理系统(hibernate3+struts2+spring2).rar
- 路由器刷breed Web控制台助手v5.8版本.rar
- Java 在 JEP 12 提供的特性预览
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1