diff options
author | Xiangrui Meng <meng@databricks.com> | 2014-05-14 17:18:30 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-05-14 17:18:30 -0700 |
commit | e3d72a74ad007c2bf279d6a74cdaca948bdf0ddd (patch) | |
tree | 1bfe9cdc9fe803b9f767eb343d4667b789840ef6 /mllib/src | |
parent | 601e37198b97ba52e72ac13213c391c932e97b67 (diff) | |
download | spark-e3d72a74ad007c2bf279d6a74cdaca948bdf0ddd.tar.gz spark-e3d72a74ad007c2bf279d6a74cdaca948bdf0ddd.tar.bz2 spark-e3d72a74ad007c2bf279d6a74cdaca948bdf0ddd.zip |
[SPARK-1696][MLLIB] use alpha in dense dspr
It doesn't affect existing code because only `alpha = 1.0` is used in the code.
Author: Xiangrui Meng <meng@databricks.com>
Closes #778 from mengxr/mllib-dspr-fix and squashes the following commits:
a37402e [Xiangrui Meng] use alpha in dense dspr
Diffstat (limited to 'mllib/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala index b10857fe7c..07dfadf2f7 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala @@ -440,7 +440,7 @@ object RowMatrix { val n = v.size v match { case dv: DenseVector => - blas.dspr("U", n, 1.0, dv.values, 1, U) + blas.dspr("U", n, alpha, dv.values, 1, U) case sv: SparseVector => val indices = sv.indices val values = sv.values |