From 676e523a830020adf317d3c5bf445f94ed5c8a35 Mon Sep 17 00:00:00 2001 From: Travis Galoppo Date: Wed, 3 Dec 2014 10:14:19 -0500 Subject: [PATCH] Fixed to no longer ignore delta value provided on command line --- .../main/scala/org/apache/spark/examples/mllib/DenseGmmEM.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main/scala/org/apache/spark/examples/mllib/DenseGmmEM.scala b/examples/src/main/scala/org/apache/spark/examples/mllib/DenseGmmEM.scala index 4272280b261ea..d6dd4fd381089 100644 --- a/examples/src/main/scala/org/apache/spark/examples/mllib/DenseGmmEM.scala +++ b/examples/src/main/scala/org/apache/spark/examples/mllib/DenseGmmEM.scala @@ -38,7 +38,7 @@ object DenseGmmEM { val data = ctx.textFile(inputFile).map(line => Vectors.dense(line.trim.split(' ').map(_.toDouble))).cache() - val clusters = GMMExpectationMaximization.train(data, k) + val clusters = GMMExpectationMaximization.train(data, k, tol) for(i <- 0 until clusters.k) { println("w=%f mu=%s sigma=\n%s\n" format (clusters.w(i), clusters.mu(i), clusters.sigma(i)))