Skip to content
Snippets Groups Projects
Commit 5c5e7d58 authored by Evan Sparks's avatar Evan Sparks Committed by Shivaram Venkataraman
Browse files

Fixing typo in als.py

XtY should be Xty.

Author: Evan Sparks <evan.sparks@gmail.com>

Closes #696 from etrain/patch-2 and squashes the following commits:

634cb8d [Evan Sparks] Fixing typo in als.py
parent c3f8b78c
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ def update(i, vec, mat, ratings): ...@@ -38,7 +38,7 @@ def update(i, vec, mat, ratings):
ff = mat.shape[1] ff = mat.shape[1]
XtX = mat.T * mat XtX = mat.T * mat
XtY = mat.T * ratings[i, :].T Xty = mat.T * ratings[i, :].T
for j in range(ff): for j in range(ff):
XtX[j,j] += LAMBDA * uu XtX[j,j] += LAMBDA * uu
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment