Code Monkey home page Code Monkey logo

audioscrobbler's Introduction

Advanced Analytics with Spark published by O'Reilly written by Ryza et al., 2015.

Dataset: We have 141,000 unique users, 1.6 million unique artists and 24.2 million user plays.

Topics:

###Alternating Least Squares (ALS):

Since there is no explicit information about users and the artists they like we search for implicit feedback data. It's important to not that in this case the data is rather sparse because some users may have only listened to a single artists and it's unlikely that a user has listened to a significant number of the possible number of artists.

###Latent Factor Model:

These models try to explain the observed interactions between users and products (artists in this case) through a relatively small number of unobserved, underlying reasons.

###Matrix Factorization Model:

User and product data are treated as a large matrix A where A[i][j] represents user i's play data for artist j. By factoring matrix A into the product of matrices X and Y we gain some insight at latent factors behind the data. We discover some size k that the two matrixes X and Y must share to be multipled.

It's important to note two things:

  • Factorization is feasible because k is assumed to be small
  • X and Y end up being dense through this process.

The small valued k could be interpreted as taste or genre in this context.

Factoring A into X and Y is impossible if we don't know X or Y so we start off ALS with completely randomized data for one matrix and solve for the other. If Y is random we minimize the absolute difference |AiY(YTY)-1 - X|. (Instead of computing inverses it's common to use QR decomposition.)

Now that we have some X we could solve for Y. If we proceeded in this fashion the algorithm guarantees convergence to a reasonable solution.

audioscrobbler's People

Contributors

mraimi avatar

Stargazers

Muller Helen 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.