Repository: spark Updated Branches: refs/heads/master c3f8b78c2 -> 5c5e7d580
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/5c5e7d58 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/5c5e7d58 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/5c5e7d58 Branch: refs/heads/master Commit: 5c5e7d5809d337ce41a7a90eb9201e12803aba48 Parents: c3f8b78 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 13:07:30 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/5c5e7d58/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