Skip to content

Commit 5c5e7d5

Browse files
etrainshivaram
authored andcommitted
Fixing typo in als.py
XtY should be Xty. Author: Evan Sparks <[email protected]> Closes #696 from etrain/patch-2 and squashes the following commits: 634cb8d [Evan Sparks] Fixing typo in als.py
1 parent c3f8b78 commit 5c5e7d5

File tree

1 file changed

+1
-1
lines changed
  • examples/src/main/python

1 file changed

+1
-1
lines changed

examples/src/main/python/als.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def update(i, vec, mat, ratings):
3838
ff = mat.shape[1]
3939

4040
XtX = mat.T * mat
41-
XtY = mat.T * ratings[i, :].T
41+
Xty = mat.T * ratings[i, :].T
4242

4343
for j in range(ff):
4444
XtX[j,j] += LAMBDA * uu

0 commit comments

Comments
 (0)