Code Monkey home page Code Monkey logo

deep-content-user's Introduction

deep-content-user

An implementation of "Deep Content-User Embedding Model for Music Recommendation, arxiv"


Requirements

  • tensorflow-gpu==1.4.0
  • keras==2.0.8

These requirements can be easily installed by: pip install -r requirements.txt

Scripts

  • data_generator.py: The base script that contains batch data generator and valid set loader.
  • load_label.py: The base script for metadata loading.
  • mp3s_to_mel.py: Convert audio to mel-spectrogram.
  • utils.py: Contain functions for evaluation.
  • model.py: Basic and multi models.
  • train.py: Module for training the recommendation models.
  • encoding.py: Contains script for extracting embedding vector given the trained model weight.
  • evaluation.py: embedding evaluation script for recommendation experiment.
  • tagging.py: Module for training the tagging experiment.

Usage

Here are examples of how to run the code. (To run 1. and 2., you need MSD audio files and its related metadata from Echonest-TasteProfile-DataLoader, MSD_split)

  1. python mp3s_to_mel.py
  2. python train.py basic --margin 0.2 --N-negs 20
  3. python encoding.py basic ./models/model_basic_20_0.20/weights.555-6.84.h5
  4. python evaluation.py basic
  5. python tagging.py basic

Reference

[1] Deep Content-User Embedding Model for Music Recommendation, Jongpil Lee, Kyungyun Lee, Jiyoung Park, Jangyeon Park, and Juhan Nam, arxiv, 2018

deep-content-user's People

Contributors

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