Description: 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.
To Search:
File list (Check if you may need any files):
code_BPMF\bayespmf.m
.........\demo.m
.........\makematrix.m
.........\moviedata.mat
.........\pmf.m
.........\pmf_weight.mat
.........\pred.m
.........\README.txt
code_BPMF