powered by
Make diagnostic plots for HTK-means clustering.
diagPlot(HTKmeans.out, type = 1)
No return value, makes the plot directly.
the output of a call to HTKmeans.
HTKmeans.
if type = 1, plots the regularization path. If type = 2, plots the differences in WCSS and ARI against the number of active variables.
type = 1
type = 2
J. Raymaekers and R.H. Zamar
This visualization plots the regularization path or the differences in WCSS and ARI against the number of active variables.
Raymaekers, Jakob, and Ruben H. Zamar. "Regularized K-means through hard-thresholding." arXiv preprint arXiv:2010.00950 (2020).
HTKmeans
X <- iris[, -5] lambdas <- seq(0, 1, by = 0.01) HTKmeans.out <- HTKmeans(X, 3, lambdas) # \donttest{ diagPlot(HTKmeans.out, 1) diagPlot(HTKmeans.out, 2) # }
Run the code above in your browser using DataLab