code_BPMF

所属分类:人工智能/神经网络/深度学习
开发工具:matlab
文件大小:4561KB
下载次数:16
上传日期:2016-11-30 20:29:25
上 传 者kobepudn
说明:  如何使它工作: 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 (5963, 2015-11-24)
code_BPMF\demo.m (148, 2015-12-20)
code_BPMF\makematrix.m (994, 2009-12-26)
code_BPMF\moviedata.mat (3898027, 2009-12-26)
code_BPMF\pmf.m (3865, 2009-12-26)
code_BPMF\pmf_weight.mat (766912, 2015-09-29)
code_BPMF\pred.m (388, 2009-12-26)
code_BPMF (0, 2016-02-26)

% Code provided by Ruslan Salakhutdinov % % Permission is granted for anyone to copy, use, modify, or distribute this % program and accompanying programs and documents for any purpose, provided % this copyright notice is retained and prominently displayed, along with % a note saying that the original programs are available from our % web page. % The programs and documents are distributed without any warranty, express or % implied. As the programs were written for research purposes only, they have % not been tested to the degree that would be advisable in any important % application. All use of these programs is entirely at the user's own risk. 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 from Wishart distribution. If you don't have stats toolbox you can use Tom Minka's "The Lightspeed Matlab Toolbox" (just google it). I did not try to optimize this code, but please e-mail me if you find bugs.

近期下载者

相关文件


收藏者