Repository: spark Updated Branches: refs/heads/master 601e37198 -> e3d72a74a
[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 <[email protected]> Closes #778 from mengxr/mllib-dspr-fix and squashes the following commits: a37402e [Xiangrui Meng] use alpha in dense dspr Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e3d72a74 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e3d72a74 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e3d72a74 Branch: refs/heads/master Commit: e3d72a74ad007c2bf279d6a74cdaca948bdf0ddd Parents: 601e371 Author: Xiangrui Meng <[email protected]> Authored: Wed May 14 17:18:30 2014 -0700 Committer: Reynold Xin <[email protected]> Committed: Wed May 14 17:18:30 2014 -0700 ---------------------------------------------------------------------- .../org/apache/spark/mllib/linalg/distributed/RowMatrix.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/e3d72a74/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala ---------------------------------------------------------------------- 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 b10857f..07dfadf 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
