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