Skip to content

Commit a213b0c

Browse files
committed
update GMM constructor
1 parent 3993054 commit a213b0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/clustering/GaussianMixture.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ class GaussianMixture private (
5050
private var maxIterations: Int,
5151
private var seed: Long) extends Serializable {
5252

53-
/** A default instance, 2 Gaussians, 100 iterations, 0.01 log-likelihood threshold */
53+
/**
54+
* Constructs a default instance. The default parameters are {k: 2, convergenceTol: 0.01,
55+
* maxIterations: 100, seed: random}.
56+
*/
5457
def this() = this(2, 0.01, 100, Utils.random.nextLong())
5558

5659
// number of samples per cluster to use when initializing Gaussians

0 commit comments

Comments
 (0)