@@ -79,6 +79,18 @@ Afterwards, you can import data or retrieve recommendations for your App by call
79
79
80
80
>>> result = client.get_itemsim_topn(" engine-2" , " i200" , 5 )
81
81
82
+ To get top 5 similar items given a list of items i200,i300,i400 from the item similarity engine "engine-2"
83
+
84
+ >>> result = client.get_itemsim_topn(" engine-2" , " i200,i300,i400" , 5 )
85
+
86
+ **Item Rank Engine **
87
+
88
+ To rank a list of items i100, i101, i102, i103 for user "u100" from the item rank engine "engine-3"
89
+
90
+ >>> client.identify(" u100" )
91
+ >>> result = client.get_itemrank_ranked(" engine-3" , [" i100" ," i101" ," i102" , " i103" ])
92
+
93
+
82
94
Please refer to the documentation of the :class: `predictionio.Client ` class for more details of all available methods.
83
95
84
96
@@ -193,7 +205,7 @@ predictionio.Client Class
193
205
.. automethod :: pending_requests
194
206
195
207
.. versionadded :: 0.6.1
196
-
208
+
197
209
|
198
210
199
211
.. _sync-methods-label :
@@ -224,13 +236,17 @@ predictionio.Client Class
224
236
225
237
.. versionadded :: 0.6.0
226
238
239
+ .. automethod :: get_itemrank_ranked
240
+
241
+ .. versionadded :: 0.7.0
242
+
227
243
.. automethod :: get_itemrec
228
-
244
+
229
245
.. deprecated :: 0.5.0
230
246
Use :func: `get_itemrec_topn ` instead.
231
247
232
248
.. automethod :: user_conversion_item
233
-
249
+
234
250
.. deprecated :: 0.5.0
235
251
Use :func: `record_action_on_item ` instead.
236
252
@@ -283,6 +299,10 @@ predictionio.Client Class
283
299
284
300
.. versionadded :: 0.6.0
285
301
302
+ .. automethod :: aget_itemrank_ranked
303
+
304
+ .. versionadded :: 0.7.0
305
+
286
306
.. automethod :: aget_itemrec
287
307
288
308
.. deprecated :: 0.5.0
@@ -314,5 +334,3 @@ predictionio.Client Class
314
334
Use :func: `arecord_action_on_item ` instead.
315
335
316
336
.. automethod :: aresp
317
-
318
-
0 commit comments