Beispiel #1
0
 def recommend(self, user, count):
     sf = self.gl_recommender.recommend(users=[user], k=count)
     sf.remove_columns(["score", "user"])
     sf.sort(["rank"], ascending=True)
     sf.remove_column("rank")
     return list(map(getitem("item"), sf))