You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by dl...@apache.org on 2014/07/30 22:18:39 UTC

git commit: NOJIRA: renaming distributed ALS `als` -> `dals` to follow convention with other decomposition notations.

Repository: mahout
Updated Branches:
  refs/heads/master 846307d5b -> e7f247d8e


NOJIRA: renaming distributed ALS `als` -> `dals` to follow convention with other decomposition notations.


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

Branch: refs/heads/master
Commit: e7f247d8ee25cf59ca0d58dc426edfee62e3613f
Parents: 846307d
Author: Dmitriy Lyubimov <dl...@apache.org>
Authored: Wed Jul 30 13:17:42 2014 -0700
Committer: Dmitriy Lyubimov <dl...@apache.org>
Committed: Wed Jul 30 13:17:42 2014 -0700

----------------------------------------------------------------------
 .../main/scala/org/apache/mahout/math/decompositions/package.scala | 2 +-
 .../math/decompositions/DistributedDecompositionsSuiteBase.scala   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mahout/blob/e7f247d8/math-scala/src/main/scala/org/apache/mahout/math/decompositions/package.scala
----------------------------------------------------------------------
diff --git a/math-scala/src/main/scala/org/apache/mahout/math/decompositions/package.scala b/math-scala/src/main/scala/org/apache/mahout/math/decompositions/package.scala
index 1ed9695..a3a8787 100644
--- a/math-scala/src/main/scala/org/apache/mahout/math/decompositions/package.scala
+++ b/math-scala/src/main/scala/org/apache/mahout/math/decompositions/package.scala
@@ -121,7 +121,7 @@ package object decompositions {
    * @tparam K row key type of the input (100 is probably more than enough)
    * @return { @link org.apache.mahout.math.drm.decompositions.ALS.Result}
    */
-  def als[K: ClassTag](
+  def dals[K: ClassTag](
       drmInput: DrmLike[K],
       k: Int = 50,
       lambda: Double = 0.0,

http://git-wip-us.apache.org/repos/asf/mahout/blob/e7f247d8/math-scala/src/test/scala/org/apache/mahout/math/decompositions/DistributedDecompositionsSuiteBase.scala
----------------------------------------------------------------------
diff --git a/math-scala/src/test/scala/org/apache/mahout/math/decompositions/DistributedDecompositionsSuiteBase.scala b/math-scala/src/test/scala/org/apache/mahout/math/decompositions/DistributedDecompositionsSuiteBase.scala
index bc2ee4b..1aa3a20 100644
--- a/math-scala/src/test/scala/org/apache/mahout/math/decompositions/DistributedDecompositionsSuiteBase.scala
+++ b/math-scala/src/test/scala/org/apache/mahout/math/decompositions/DistributedDecompositionsSuiteBase.scala
@@ -199,7 +199,7 @@ trait DistributedDecompositionsSuiteBase extends DistributedMahoutSuite with Mat
     val drmA = drmParallelize(inCoreA, numPartitions = 2)
 
     // Decompose using ALS
-    val (drmU, drmV, rmse) = als(drmInput = drmA, k = 20).toTuple
+    val (drmU, drmV, rmse) = dals(drmInput = drmA, k = 20).toTuple
     val inCoreU = drmU.collect
     val inCoreV = drmV.collect