From 20ebca18ee09b31d201f21658c7b464fd0f5fad7 Mon Sep 17 00:00:00 2001 From: Travis Galoppo Date: Wed, 17 Dec 2014 11:20:10 -0500 Subject: [PATCH] Removed unusued code --- .../spark/mllib/clustering/GaussianMixtureModelEM.scala | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureModelEM.scala b/mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureModelEM.scala index a6e6ad9ef52b2..752615dde576b 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureModelEM.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixtureModelEM.scala @@ -143,12 +143,6 @@ class GaussianMixtureModelEM private ( } } - /*var gaussians = (0 until k).map{ i => - (1.0 / k, - vectorMean(samples.slice(i * nSamples, (i + 1) * nSamples)), - initCovariance(samples.slice(i * nSamples, (i + 1) * nSamples))) - }.toArray - */ val accW = new Array[Accumulator[Double]](k) val accMu = new Array[Accumulator[DenseDoubleVector]](k) val accSigma = new Array[Accumulator[DenseDoubleMatrix]](k)