Skip to content

Commit 4bb57c9

Browse files
committed
docs: try to fix RBP example
1 parent 275f834 commit 4bb57c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/guide/batch.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Configure and train the model:
4949

5050
Generate recommendations:
5151

52-
>>> recs = recommend(pop_pipe, split.test.keys(), n_jobs=1)
52+
>>> recs = recommend(pop_pipe, split.test.keys())
5353
>>> recs.to_df()
5454
user_id item_id score rank
5555
0 ... 1
@@ -60,9 +60,9 @@ And measure their results:
6060

6161
>>> collect = MeasurementCollector()
6262
>>> collect.add_metric(RBP())
63-
>>> collect.measure(recs, split.test)
63+
>>> collect.measure_collection(recs, split.test)
6464
>>> collect.summary_metrics() # doctest: +ELLIPSIS
65-
{ ... "RBP.mean": "0.06...", ... }
65+
{ ... 'RBP.mean': 0.06..., ... }
6666

6767

6868
The :py:func:`predict` function works similarly, but for rating predictions.

0 commit comments

Comments
 (0)