You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sh...@apache.org on 2014/05/08 22:07:45 UTC
git commit: Fixing typo in als.py
Repository: spark
Updated Branches:
refs/heads/master c3f8b78c2 -> 5c5e7d580
Fixing typo in als.py
XtY should be Xty.
Author: Evan Sparks <ev...@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 <ev...@gmail.com>
Authored: Thu May 8 13:07:30 2014 -0700
Committer: Shivaram Venkataraman <sh...@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