Skip to content

Commit

Permalink
Fix SAR notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuyang Ke committed Jun 9, 2022
1 parent d3d4b98 commit 68b60c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/00_quick_start/sar_movielens.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
],
"source": [
"with Timer() as test_time:\n",
" top_k = model.recommend_k_items(test, remove_seen=True)\n",
" top_k = model.recommend_k_items(test, top_k=TOP_K, remove_seen=True)\n",
"\n",
"print(\"Took {} seconds for prediction.\".format(test_time.interval))"
]
Expand Down Expand Up @@ -923,4 +923,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}
4 changes: 2 additions & 2 deletions examples/00_quick_start/sar_movielens_with_azureml.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
"\n",
"# predict top k items\n",
"with Timer() as t:\n",
" top_k = model.recommend_k_items(test, remove_seen=True)\n",
" top_k = model.recommend_k_items(test, top_k=TOP_K, remove_seen=True)\n",
"\n",
"run.log(name=\"Prediction time\", value=t.interval)\n",
"\n",
Expand Down Expand Up @@ -693,4 +693,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
"source": [
"# set the environment path to find Recommenders\n",
"import sys\n",

"\n",
"import itertools\n",
"import logging\n",
Expand Down Expand Up @@ -390,7 +389,7 @@
}
],
"source": [
"top_k = model.recommend_k_items(test, remove_seen=True)"
"top_k = model.recommend_k_items(test, top_k=TOP_K, remove_seen=True)"
]
},
{
Expand Down

0 comments on commit 68b60c0

Please sign in to comment.