| cluster_gmm | R Documentation |
Model-based clustering using mclust::Mclust.
cluster_gmm(G = NULL, modelNames = NULL)
G |
number of mixture components (clusters). If NULL, |
modelNames |
optional character vector of model names passed to |
Fits a Gaussian mixture model and returns the MAP classification.
The fitted model is stored in obj$model. Requires the mclust package.
returns a GMM clustering object.
Fraley, C., & Raftery, A. E. (2002). Model-based clustering. JASA.
data(iris)
model <- cluster_gmm(G = 3)
model <- fit(model, iris[,1:4])
clu <- cluster(model, iris[,1:4])
table(clu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.