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:
Evan Sparks 2014-05-08 13:07:30 -07:00 committed by Shivaram Venkataraman
parent c3f8b78c21
commit 5c5e7d5809

View file

@ -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