View source: R/DPmeansClustering.R
| DPmeansClustering | R Documentation |
DP-means creates new clusters using a threshold motivated by a small-variance limit of Dirichlet-process mixture models [Kulis/Jordan, 2012]. Uses T4cluster::dpmeans.
DPmeansClustering(Data, Lambda, PlotIt=FALSE, ...)
Data |
Numeric [1:n,1:d] data matrix with observations in rows. Missing and infinite values and |
Lambda |
Positive finite cluster-creation threshold, passed unchanged to |
PlotIt |
Default: FALSE. If TRUE, plot the clustering using |
... |
Further arguments to |
The number of clusters is estimated rather than supplied. Increasing Lambda generally favors fewer clusters. Neither feature standardization nor threshold selection is performed by this wrapper. The T4cluster backend delegates the computation to maotai and may optionally permute the observation update order with permute=TRUE.
List of
Cls |
[1:n] numeric vector of cluster labels, named after the input observations. The number of clusters is estimated. |
Object |
Complete result of |
The optional package T4cluster is required. If it is missing, no computation is performed: a message is issued, Cls contains only 1, and Object contains the reason, following the FCPS wrapper convention.
Michael Thrun
[Kulis/Jordan, 2012] Kulis, B., & Jordan, M. I.: Revisiting k-means: New Algorithms via Bayesian Nonparametrics, Proceedings of the 29th International Conference on Machine Learning, pp. 1131-1138, 2012. https://people.eecs.berkeley.edu/~jordan/papers/kulis-jordan-icml12.pdf.
if (requireNamespace("T4cluster", quietly=TRUE)) {
data("Hepta")
out = DPmeansClustering(Hepta$Data, Lambda=5)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.