Repository: spark Updated Branches: refs/heads/branch-1.0 6f701ff55 -> 98944a973
Fixing typo in als.py XtY should be Xty. Author: Evan Sparks <evan.spa...@gmail.com> Closes #696 from etrain/patch-2 and squashes the following commits: 634cb8d [Evan Sparks] Fixing typo in als.py Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/98944a97 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/98944a97 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/98944a97 Branch: refs/heads/branch-1.0 Commit: 98944a9734389cd4400516a1eb3afa5376f44927 Parents: 6f701ff Author: Evan Sparks <evan.spa...@gmail.com> Authored: Thu May 8 13:07:30 2014 -0700 Committer: Shivaram Venkataraman <shiva...@eecs.berkeley.edu> Committed: Thu May 8 16:49:33 2014 -0700 ---------------------------------------------------------------------- examples/src/main/python/als.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/98944a97/examples/src/main/python/als.py ---------------------------------------------------------------------- diff --git a/examples/src/main/python/als.py b/examples/src/main/python/als.py index 33700ab..01552dc 100755 --- a/examples/src/main/python/als.py +++ b/examples/src/main/python/als.py @@ -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