- 有支持 C++11 的编译环境
- 有 Python2.7 环境
- 已安装 Python 的 Numpy 科学计算库
- bpr-transr/data
- bpr/data
- bpr-transr/bpr-transr.cpp: BPR-TransR程序源文件
- bpr/bpr.cpp: MFBPR程序源文件
- outputs_and_plots/bp*.txt
- outputs_and_plots/bt*.txt
- outputs_and_plots/final.txt 该文件为以上两类文件经手动整理得到
- outputs_and_plots/plot_dim.py: 绘制不同维度下MFBPR和BPR-TransR的比较图
- outputs_and_plots/plot_40.py: 绘制随迭代次数MFBPR和BPR-TransR的比较图
- outputs_and_plots/figure_1.png
- outputs_and_plots/figure_2.png
g++ -o bpr.exe -std=c++11 bpr.cpp
g++ -o bpr-transr.exe -std=c++11 bpr-transr.cpp
bpr.exe
bpr-transr.exe
python plot_dim.py
python plot_40.py
程序的具体问题请见源代码中的注释
Collaborative Knowledge Base Embedding for Recommender Systems