文件名称:code_BPMF
介绍说明--下载内容均来自于网络,请自行研究使用
如何使它工作:
1。创建一个单独的目录,并将所有这些文件下载到相同的目录中
2。下载7个文件:
*demo:主文件demo:PMF和贝叶斯PMF
* PMF.m:训练的PMF模型
* bayespmf.m贝叶斯PMF模型实现吉布斯采样器。
* moviedata.mat样本数据包含三元组(user_id,movie_id,评分)
* makematrix.m:辅助功能转换成大型矩阵的三元组。
* PRED.m:辅助功能使得预测验证集。
三.在Matlab只需运行演示。此代码使用MATLAB统计工具箱从威沙特分布的样本。-How to make it work:
1. Create a separate directory and download all these files into the same directory
2. Download the following 7 files:
* demo.m Main file for training PMF and Bayesian PMF
* pmf.m Training PMF model
* bayespmf.m Bayesian PMF model that implements Gibbs sampler.
* moviedata.mat Sample data that contains triplets (user_id, movie_id, rating)
* makematrix.m Helper function that converts triplets into large matrix.
This file is used by bayespmf.m
* pred.m Helper function that makes predictions on the validation set.
* README.txt
3. Simply run demo.m in Matlab. It will fit PMF and then will run Bayesian PMF.
This code uses Matlab stats toolbox to sample Wishart distribution.
1。创建一个单独的目录,并将所有这些文件下载到相同的目录中
2。下载7个文件:
*demo:主文件demo:PMF和贝叶斯PMF
* PMF.m:训练的PMF模型
* bayespmf.m贝叶斯PMF模型实现吉布斯采样器。
* moviedata.mat样本数据包含三元组(user_id,movie_id,评分)
* makematrix.m:辅助功能转换成大型矩阵的三元组。
* PRED.m:辅助功能使得预测验证集。
三.在Matlab只需运行演示。此代码使用MATLAB统计工具箱从威沙特分布的样本。-How to make it work:
1. Create a separate directory and download all these files into the same directory
2. Download the following 7 files:
* demo.m Main file for training PMF and Bayesian PMF
* pmf.m Training PMF model
* bayespmf.m Bayesian PMF model that implements Gibbs sampler.
* moviedata.mat Sample data that contains triplets (user_id, movie_id, rating)
* makematrix.m Helper function that converts triplets into large matrix.
This file is used by bayespmf.m
* pred.m Helper function that makes predictions on the validation set.
* README.txt
3. Simply run demo.m in Matlab. It will fit PMF and then will run Bayesian PMF.
This code uses Matlab stats toolbox to sample Wishart distribution.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
code_BPMF\bayespmf.m
.........\demo.m
.........\makematrix.m
.........\moviedata.mat
.........\pmf.m
.........\pmf_weight.mat
.........\pred.m
.........\README.txt
code_BPMF