Skip to content

Commit

Permalink
Merge branch 'master' of github.com:NicolasHug/Surprise
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Sep 13, 2018
2 parents d7d2ac6 + 0a7bb82 commit a501402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions surprise/prediction_algorithms/knns.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class KNNBasic(SymmetricAlgo):
.. math::
\hat{r}_{ui} = \\frac{
\\sum\\limits_{j \in N^k_u(i)} \\text{sim}(i, j) \cdot r_{uj}}
{\\sum\\limits_{j \in N^k_u(j)} \\text{sim}(i, j)}
{\\sum\\limits_{j \in N^k_u(i)} \\text{sim}(i, j)}
depending on the ``user_based`` field of the ``sim_options`` parameter.
Expand Down Expand Up @@ -233,7 +233,7 @@ class KNNBaseline(SymmetricAlgo):
.. math::
\hat{r}_{ui} = b_{ui} + \\frac{ \\sum\\limits_{j \in N^k_u(i)}
\\text{sim}(i, j) \cdot (r_{uj} - b_{uj})} {\\sum\\limits_{j \in
N^k_u(j)} \\text{sim}(i, j)}
N^k_u(i)} \\text{sim}(i, j)}
depending on the ``user_based`` field of the ``sim_options`` parameter. For
the best predictions, use the :func:`pearson_baseline
Expand Down

0 comments on commit a501402

Please sign in to comment.