Giter Club home page Giter Club logo

bpmf's Introduction

% 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.



bpmf's People

Contributors

shockley avatar

Watchers

 avatar James Cloos avatar

Forkers

wujinming

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.