Giter Site home page Giter Site logo

unison-recsys's Introduction

Unison

Unison is the recommendation system behind GroupStreamer, an Android application that recommends music for groups. You can also checkout the source code of the mobile application if you're interested.

Getting started

You need to define an environment variable, UNISON_ROOT, that contains the path to Unison's root folder. Then, run bootstrap.sh which will initialize some things.

# Create the one environment variable we need, and run bootstrap.sh.
export UNISON_ROOT=`pwd`
./bootstrap.sh

Unison is mainly written in Python, and uses various libraries. The simplest thing to do is to create a new virtual environment dedicated to Unison.

# Setup a python virtual environment and install the dependencies.
virtualenv --distribute venv
. venv/bin/activate
pip install -r python-reqs.txt

# Unison is currently bundled with two libraries.
pip install libs/libunison libs/liblfm

Some scripts also require numpy, scipy and matplotlib. If you want to be able to run everything, you should also install those. Be aware that you'll need a Fortran compiler.

# Don't have a fortran compiler? On Mac and with Homebrew, type:
brew install gfortran

# Install the Python numerical analysis & computation trifecta.
pip install numpy
pip install scipy
pip install matplotlib

# You might also have to install scikit-learn to be able to run everything.
pip install scikit-learn

Unison uses many other tools and software. Hopefully most of it is documented in the relevant places (checkout the README files in the various subfolders).

One last (important) thing: there's a central configuration file that is expected to live at $UNISON_ROOT/config.yaml. Check out the sample configuration file to see what's expected to be in there.

Project structure

The project comprises several components, usually organized as subfolders of the root directory. Here's a brief description of the main parts.

  • data: contains the raw data from the Million Song Dataset, used to build the latent space.
  • lsa: stands for Latent Semantic Analysis. Everything related to building the tag-based recommendation system.
  • tagfetch: the background service that fetches information about tracks from Last.fm (tags, cover art, ...).
  • api: the REST API used by the mobile application to communicate with the recommendation system.
  • www: the main website.
  • scripts: several utilities that are used to manipulate or visualize the data, or perform some maintenance operation.
  • lfm-ratings: experiments done on user rating data obtained from Last.fm. The purpose was to test the effectiveness of the tag-based latent space representation of tracks.
  • libs: contains the Python libraries bundled with Unison.

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.