Code Monkey home page Code Monkey logo

recommendation's Introduction

Movie Recommendation Analysis

This repository analyzes the movie recommendation dataset by Probabilistic Matrix Factorization.

datasets

MovieLens Latest Datasets are downloaded here https://grouplens.org/datasets/movielens/ In the analysis, small dataset (100k ratings applied to 9,000 movies by 600 users) is tested. To test model capability quickly, partial movies with id less than 400 (super-mini-MovieLens) are tested.

model

Probabilistic Matrix Factorization is trained by MAP (maximum a posterior) estimation. The goal of Matrix Factorization is to find two matrices $U$ and $V$, approximating targeted matrix R by $R = UV$

Based on the Columbia University Prof. John Paiskley's lecture (http://www.columbia.edu/~jwp2128/Teaching/W4721/Spring2017/slides/lecture_3-30-17.pdf) and their page 19, MAP inference is estimated by coordinate ascent algorithm.

q_{U}

q_{V}

Under PMF, model is coded under the class inheritance of sklearn BaseEstimator. To deal with sparse matrix, math operation relies on scipy.sparse lil_matrix and coo_matrix

Notebooks

hyperparameter sensitivity

Leveraging GridSearchCV, two hyperparameters (features dimension, reguralization term of variance of matrix R =$\lambda \sigma^2$) are tuned by 3 folds cross valication.

Grid search is computed with 4 processes in 16GB CPU mac book pro and it takes 17min 12s to test 24 combinations in total.

Submission

This is submitted to Statistical Machine Learning coarse (2020 Summer) in the University of Tokyo

recommendation's People

Contributors

hitoshi-nakanishi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.