Skip to content

Commit c79a3dc

Browse files
author
Kenneth Chan
committed
SDKPYTHON-9 #comment update movierec example
1 parent cc64a81 commit c79a3dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/itemrec/movies/movie_rec_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def recommend_task(self, prev_state):
5555
print "[Info] Getting top %s item recommendations for user %s..." % (n, u.uid)
5656
try:
5757
self._client.identify(u.uid)
58-
rec = self._client.get_itemrec_topn(n, ENGINE_NAME)
58+
rec = self._client.get_itemrec_topn(ENGINE_NAME, n)
5959
u.rec = rec['pio_iids']
6060
self.display_items(u.rec)
6161
except predictionio.ItemRecNotFoundError:

0 commit comments

Comments
 (0)