Skip to content

Commit

Permalink
update GMM constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxr committed Feb 4, 2015
1 parent 3993054 commit a213b0c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ class GaussianMixture private (
private var maxIterations: Int,
private var seed: Long) extends Serializable {

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

// number of samples per cluster to use when initializing Gaussians
Expand Down

0 comments on commit a213b0c

Please sign in to comment.