Skip to content

Commit

Permalink
add struc2vec code
Browse files Browse the repository at this point in the history
  • Loading branch information
WDdeBWT committed Jun 24, 2020
1 parent 02e8567 commit 1547bae
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 362 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# RecommendationCTR
Recommendation model for CTR prediction

## Implementation based on KGAT
## Implementation based on following project

* https://github.com/LunaBlack/KGAT-pytorch
* https://github.com/LunaBlack/KGAT-pytorch # model KGAT Pyorch implementation

* https://github.com/xiangwang1223/knowledge_graph_attention_network
* https://github.com/xiangwang1223/knowledge_graph_attention_network # model KGAT Tensorflow implementation

* https://github.com/gusye1234/LightGCN-PyTorch # model LightGCN Pyorch implementation

* https://github.com/shenweichen/GraphEmbedding # a lot of graph embedding model (DeepWalk, Struc2Vec, etc.) implementation

## Environment Requirement
The code has been tested running under Python 3.6.8. The required packages are as follows:
* torch == 1.3.1
* dgl-cu90 == 0.4.1
* numpy == 1.15.4
* pandas == 0.23.1
* scipy == 1.1.0
* sklearn == 0.20.0

* torch
* dgl-cu90
* numpy
* pandas
* scipy
* sklearn
* networkx
* fastdtw
* joblib
File renamed without changes.
296 changes: 0 additions & 296 deletions script_kgat.py

This file was deleted.

2 changes: 1 addition & 1 deletion script_lgcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np

from cf_dataset import DataOnlyCF
from lgcn_model import LightGCN
from light_gcn.lgcn_model import LightGCN
from metrics import precision_and_recall, ndcg, auc

EPOCH = 200
Expand Down
55 changes: 0 additions & 55 deletions test_dgl.py

This file was deleted.

0 comments on commit 1547bae

Please sign in to comment.