aboutsummaryrefslogtreecommitdiff
path: root/examples/src/main/python/als.py
diff options
context:
space:
mode:
authorEvan Sparks <evan.sparks@gmail.com>2014-05-08 13:07:30 -0700
committerShivaram Venkataraman <shivaram@eecs.berkeley.edu>2014-05-08 13:07:30 -0700
commit5c5e7d5809d337ce41a7a90eb9201e12803aba48 (patch)
treee87d2df1ff66050b7c1cea9810ccf2cebda6a225 /examples/src/main/python/als.py
parentc3f8b78c211df6c5adae74f37e39fb55baeff723 (diff)
downloadspark-5c5e7d5809d337ce41a7a90eb9201e12803aba48.tar.gz
spark-5c5e7d5809d337ce41a7a90eb9201e12803aba48.tar.bz2
spark-5c5e7d5809d337ce41a7a90eb9201e12803aba48.zip
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
Diffstat (limited to 'examples/src/main/python/als.py')
-rwxr-xr-xexamples/src/main/python/als.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/main/python/als.py b/examples/src/main/python/als.py
index 33700ab4f8..01552dc1d4 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