You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2014/05/15 02:18:34 UTC

git commit: [SPARK-1696][MLLIB] use alpha in dense dspr

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 <me...@databricks.com>

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 <me...@databricks.com>
Authored: Wed May 14 17:18:30 2014 -0700
Committer: Reynold Xin <rx...@apache.org>
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