Skip to content

Commit dd85452

Browse files
author
Max
committed
Simplified code example for Top-N ranking prediction. Since the method returns the model, recommend() can be called directly with the returned model.
1 parent fb00bdd commit dd85452

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,9 @@ for split in crossfold_users(ml100k, 2, SampleN(5)):
155155
test_split = split.test
156156

157157
# Fixme: INSERT SECENARIO CODE HERE
158-
159-
# create pipeline
160-
pipeline = model
158+
161159
#recommend
162-
recs = recommend(pipeline, test_split)
160+
recs = recommend(model, test_split)
163161

164162
# create run analysis
165163
rla = RunAnalysis()

0 commit comments

Comments
 (0)