Skip to content

Commit

Permalink
small doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Feb 10, 2022
1 parent e5fdfff commit d2f4728
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/knn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mean-centering normalization. This is the default mode, and can be selected exp
With **implicit feedback** (unary data such as clicks and purchases, typically represented with
rating values of 1 for positive items), the usual design is sum aggregation and no centering. This
can be selected with ``feedback='implicit'``, which also configures the algorithm to ignore rating
values (when present) and treat every rating as 1:
values (when present) and treat every rating as 1::

implicit_knn = ItemItem(20, feedback='implicit')

Expand Down
4 changes: 2 additions & 2 deletions lenskit/algorithms/item_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ class ItemItem(Predictor):
nnbrs(int):
the maximum number of neighbors for scoring each item (``None`` for unlimited)
min_nbrs(int): the minimum number of neighbors for scoring each item
min_sim(double): minimum similarity threshold for considering a neighbor
save_nbrs(double):
min_sim(float): minimum similarity threshold for considering a neighbor
save_nbrs(float):
the number of neighbors to save per item in the trained model
(``None`` for unlimited)
feedback(str):
Expand Down
2 changes: 1 addition & 1 deletion lenskit/algorithms/user_knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class UserUser(Predictor):
nnbrs(int):
the maximum number of neighbors for scoring each item (``None`` for unlimited)
min_nbrs(int): the minimum number of neighbors for scoring each item
min_sim(double): minimum similarity threshold for considering a neighbor
min_sim(float): minimum similarity threshold for considering a neighbor
feedback(str):
Control how feedback should be interpreted. Specifies defaults for the other
settings, which can be overridden individually; can be one of the following values:
Expand Down

0 comments on commit d2f4728

Please sign in to comment.