Repository for STN Project - Generating playlist using network analysis and custom pagerank
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
python-louvain-0.9
README.md
conda-requirements.txt
report.pdf
script.py

README.md

Instructions to Install and Setup

Download the database Download the track metadata Put them in the root level of the project

Create a conda environment to install all packages with:

conda create --name myenv --file conda-requirements.txt

Then activate the conda environment:

source activate myenv

To install Python-Louvain:

cd ./python-louvain-0.9

python setup.py install

To Run the program:

python script.py

Note to initially preprocess the db and create graph / communities it takes about 10-15 mins, be patient please. After that the prompt runs in an infinite loop, ctrl + c to quit.

Each songs need to be given in the following format: Artist - Song;Artist2 - Song2;Artist3 - Song3 Be careful of the spaces please.