r***@apache.org
2017-09-21 18:17:26 UTC
Repository: mahout
Updated Branches:
refs/heads/master e56378cf7 -> b99e71c32
MAHOUT-2012 Fix hardcoded dataset in canopy clustering
Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/b99e71c3
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/b99e71c3
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/b99e71c3
Branch: refs/heads/master
Commit: b99e71c32c9fece5acf4485e7f3073d50240336a
Parents: e56378c
Author: Trevor a.k.a @rawkintrevo <***@gmail.com>
Authored: Thu Sep 21 13:17:12 2017 -0500
Committer: Trevor a.k.a @rawkintrevo <***@gmail.com>
Committed: Thu Sep 21 13:17:12 2017 -0500
----------------------------------------------------------------------
.../scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mahout/blob/b99e71c3/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
----------------------------------------------------------------------
diff --git a/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala b/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
index 96d1968..8f287b0 100644
--- a/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
+++ b/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
@@ -128,7 +128,6 @@ class CanopyClustering extends ClusteringFitter {
object CanopyFn extends Serializable {
def findCenters(block: Matrix, distanceMeasure: DistanceMetric, t1: Double, t2: Double): Matrix = {
- val block = dense((1.0, 1.2, 1.3, 1.4), (1.1, 1.5, 2.5, 1.0), (6.0, 5.2, -5.2, 5.3), (7.0,6.0, 5.0, 5.0), (10.0, 1.0, 20.0, -10.0))
var rowAssignedToCanopy = Array.fill(block.nrow) { false }
val clusterBuf = scala.collection.mutable.ListBuffer.empty[org.apache.mahout.math.Vector]
while (rowAssignedToCanopy.contains(false)) {
Updated Branches:
refs/heads/master e56378cf7 -> b99e71c32
MAHOUT-2012 Fix hardcoded dataset in canopy clustering
Project: http://git-wip-us.apache.org/repos/asf/mahout/repo
Commit: http://git-wip-us.apache.org/repos/asf/mahout/commit/b99e71c3
Tree: http://git-wip-us.apache.org/repos/asf/mahout/tree/b99e71c3
Diff: http://git-wip-us.apache.org/repos/asf/mahout/diff/b99e71c3
Branch: refs/heads/master
Commit: b99e71c32c9fece5acf4485e7f3073d50240336a
Parents: e56378c
Author: Trevor a.k.a @rawkintrevo <***@gmail.com>
Authored: Thu Sep 21 13:17:12 2017 -0500
Committer: Trevor a.k.a @rawkintrevo <***@gmail.com>
Committed: Thu Sep 21 13:17:12 2017 -0500
----------------------------------------------------------------------
.../scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala | 1 -
1 file changed, 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mahout/blob/b99e71c3/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
----------------------------------------------------------------------
diff --git a/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala b/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
index 96d1968..8f287b0 100644
--- a/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
+++ b/math-scala/src/main/scala/org/apache/mahout/math/algorithms/clustering/Canopy.scala
@@ -128,7 +128,6 @@ class CanopyClustering extends ClusteringFitter {
object CanopyFn extends Serializable {
def findCenters(block: Matrix, distanceMeasure: DistanceMetric, t1: Double, t2: Double): Matrix = {
- val block = dense((1.0, 1.2, 1.3, 1.4), (1.1, 1.5, 2.5, 1.0), (6.0, 5.2, -5.2, 5.3), (7.0,6.0, 5.0, 5.0), (10.0, 1.0, 20.0, -10.0))
var rowAssignedToCanopy = Array.fill(block.nrow) { false }
val clusterBuf = scala.collection.mutable.ListBuffer.empty[org.apache.mahout.math.Vector]
while (rowAssignedToCanopy.contains(false)) {