Coder Social home page Coder Social logo

recommender-system's Introduction

Music Artist Recommender System with Apache Spark

Built a personalized music artist recommendation system with Yahoo! music community ratings.

Data

I used Yahoo! Community music ratings data for this analysis. This Yahoo! Music data represents a sample of (anonymized) Yahoo! users' ratings of musical artists, gathered over a thirty-day period sometime prior to March 2004. The dataset contains 11,557,943 ratings of 98,211 artists by 1,948,882 anonymous users.

Steps

First I Performed online analytical processing (OLAP) based on Spark Dataframe and Spark SQL. Then Trained ALS model based on Collaborative Filtering in PySpark MLlib and tuned hyperparameters with cross-validation toolbox. The Spark API provides the implementation of the ALS algorithm, which is used to learn these latent factors based on the following six parameters:

  • numBlocks: The number of blocks used to parallelise computation (set to -1 to auto-configure).
  • rank: The number of latent factors in the model.
  • iterations: The number of iterations of ALS to run. ALS typically converges to a reasonable solution in 20 iterations or less.
  • lambda: The regularisation parameter.
  • implicitPrefs: Whether to use the explicit feedback from the ALS variant for implicit feedback data.
  • alpha: A parameter applicable to the implicit feedback variant of ALS that governs the baseline confidence in preference observations.

recommender-system's People

Contributors

fangshulin avatar

Watchers

James Cloos avatar

Forkers

unplugcharger

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.