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
This commit is contained in:
parent
c3f8b78c21
commit
5c5e7d5809
|
@ -38,7 +38,7 @@ def update(i, vec, mat, ratings):
|
|||
ff = mat.shape[1]
|
||||
|
||||
XtX = mat.T * mat
|
||||
XtY = mat.T * ratings[i, :].T
|
||||
Xty = mat.T * ratings[i, :].T
|
||||
|
||||
for j in range(ff):
|
||||
XtX[j,j] += LAMBDA * uu
|
||||
|
|
Loading…
Reference in a new issue