fajifr / recontent

Content recommendation API
MIT License
0 stars 1 forks source link

API should get Recommender dynamically #5

Open frankcleary opened 8 years ago

frankcleary commented 8 years ago

We'll need to get a recommender implementation for each API call, something like:

recommender = getRecommender(recommenders, otherContext)  # have a list of available recommenders
...
getRecommender(recommenders, otherContext)
   return random.choice(recommenders) # in the future can also use context to choose a recommender
Freija commented 8 years ago

I implemented this as follows: