Giter VIP home page Giter VIP logo

spark_recommender_systems's Introduction

Movielens Dataset Recommender System

Using Spark 2.0+

Recommender systems, or sometimes referred to as recommender engines, are a modeling algorithm that tries to predict the “rating” that a user would give to an item. In this case the items are movies from the Movielens dataset. This dataset is a list of movies, users and ratings with links to imdb and tmdb (theMovieDB) web id's so we can scrape or fetch information from API's regarding recommendations.

The main idea is to build a matrix of users X items with rating values filled in for existing data. This feature set in then decomposed into U, V matrices which correspond with a set of latent factors which can be used to describe user preferences.

ALS

Apache Spark ML implements alternating least squares (ALS) for collaborative filtering, a very popular algorithm for making recommendations.

ALS recommender is a matrix factorization algorithm that uses Alternating Least Squares with Weighted-Lamda-Regularization (ALS-WR). It makes the regularization parameter less dependent on the scale of the dataset. This way the best parameter learned from the sampled subset can be aplied to the full dataset and we will get similar performance. The latent factors should explain the observed user to item ratings and map new users to optimal movie recommendations.

Jupyter Notebook

spark_recommender.ipynb

Considerations

The ALS model used assumes, by default, that the ratings are explicit. If the ratings matrix is described by other information or inferred from other signals then the parameter implicitPrefs can be set to True and yield better results.

References

I used the following sites for help in the making this repo:

  1. https://spark.apache.org/docs/preview/ml-collaborative-filtering.html

  2. http://blog.ethanrosenthal.com/2015/11/02/intro-to-collaborative-filtering/

  3. https://www.elenacuoco.com/2016/12/22/alternating-least-squares-als-spark-ml/

spark_recommender_systems's People

Contributors

gdmacmillan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fati21 ggzsc

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.