mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apalu...@apache.org
Subject mahout git commit: [noJira] flip signs in SparseSparseDrmTimere.mscala example
Date Sun, 02 Apr 2017 02:56:11 GMT
Repository: mahout
Updated Branches:
  refs/heads/master b77f89f5d -> 3d0c271df


[noJira] flip signs in SparseSparseDrmTimere.mscala example


Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/3d0c271d
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/3d0c271d
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/3d0c271d

Branch: refs/heads/master
Commit: 3d0c271df2713f125a435f30f399a6865f87636b
Parents: b77f89f
Author: Andrew Palumbo <apalumbo@apache.org>
Authored: Sat Apr 1 19:54:51 2017 -0700
Committer: Andrew Palumbo <apalumbo@apache.org>
Committed: Sat Apr 1 19:54:51 2017 -0700

----------------------------------------------------------------------
 examples/bin/SparseSparseDrmTimer.mscala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/3d0c271d/examples/bin/SparseSparseDrmTimer.mscala
----------------------------------------------------------------------
diff --git a/examples/bin/SparseSparseDrmTimer.mscala b/examples/bin/SparseSparseDrmTimer.mscala
index d01bf3a..947dd73 100644
--- a/examples/bin/SparseSparseDrmTimer.mscala
+++ b/examples/bin/SparseSparseDrmTimer.mscala
@@ -9,7 +9,7 @@ def timeSparseDRMMMul(m: Int, n: Int, s: Int, para: Int, pctDense: Double
= .20,
          val R =  scala.util.Random
          R.setSeed(seed)
          val blockB = new SparseRowMatrix(block.nrow, block.ncol) 
-         blockB := {x => if (R.nextDouble > pctDense) R.nextDouble else x }
+         blockB := {x => if (R.nextDouble < pctDense) R.nextDouble else x }
        (keys -> blockB)
   }
   val drmB = drmParallelizeEmpty(s , n, para).mapBlock(){
@@ -17,7 +17,7 @@ def timeSparseDRMMMul(m: Int, n: Int, s: Int, para: Int, pctDense: Double
= .20,
          val R =  scala.util.Random
          R.setSeed(seed + 1)
          val blockB = new SparseRowMatrix(block.nrow, block.ncol) 
-         blockB := {x => if (R.nextDouble > pctDense) R.nextDouble else x }
+         blockB := {x => if (R.nextDouble < pctDense) R.nextDouble else x }
        (keys -> blockB)
   }
 


Mime
View raw message