Exemple #1
0
def runGetUserData(userId):
    return turi().getUserRatingData(userId=userId)
Exemple #2
0
def runSaveUserData(userData):
    turi().saveUserRatingData(userData=userData)
    return 'finish'
Exemple #3
0
def runByUser(userId, topItems):
    movies = turi().recommendByUser(userId=userId, topN=topItems)
    return movies
Exemple #4
0
def runPopular(userId, topItems):
    movies = turi().getPopularForUser(userId=userId, topN=topItems)
    return movies
Exemple #5
0
def runByItems(itemId, topItems):
    movies = turi().recommendByItems(itemId=itemId, topN=topItems)
    return movies