Skip to content

HanyangTechAI/2020_RecSys_MusicRecommender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playlist Continuation

HAI Playlist Continuation Task

🔨 How to run

Download the song_meta.json, test.json, train.json, val.json to api/
After that, use these commands

$> pip install -r requirements.txt
$> npm install
$> npm run build
$> export FLASK_APP=api.py
$> npm run start-api

Then, the server will open in localhost:5000

🔎 How to Implement Recommender

Implement inference in api/recommender/test_recommender.py

class RecInterface:
  def __init__(self):
    pass

  def inference(self, user_playlist):
    """Recommend Playlist with given user playlist
    :return: (List) song_ids of the recommended playlist
    """
    raise NotImplementedError