myrrix - How to export/access recommendations for all users in Oryx? -
there oryx running on ubuntu. configured read csv files directory update recommendations. need total list of recommendations (all users , 100 recommendations per each user) insert postgres database. how can recommendations? api allows me retrieve recommendations single user.
if understand question correctly, think comes downwards running loop in script. if able need query on single user, seek writing script loop query on users. pseudo-python script may this:
import requests # define endpoint recommendation single user endpoint = 'http://<serving layer ip>:8091/reccomend/' # loop query on users in xrange(userid): recommendation[i] = requests.get(endpoint + userid[i])
of course, each recommendation[i] each userid[i] depends on output format, etc., thought perform single user query on users using script.
myrrix oryx
No comments:
Post a Comment