som_kmeansRProg {SOMEnv} | R Documentation |
K-means algorithm applied for a specific number of clusters
Description
The training is run for a custom number of epochs for k number of clusters
Usage
som_kmeansRProg(codebook, k, epochs, seed = NULL)
Arguments
codebook |
SOM codebook |
k |
Number of clusters |
epochs |
Number of training epochs |
seed |
Number for set.seed function |
Details
The function has been coded in R code starting from som_kmeans.m script present in somtoolbox for Matlab by Vesanto and adapted to show a progress bar when working embedded in the shiny app.
Value
This function returns a list containing the cluster number assignment for each sample, the cluster centroids, the total quantization error, and the random seed number used
Author(s)
Sabina Licen, Pierluigi Barbieri
References
J. Vesanto, J. Himberg, E. Alhoniemi, J. Parhankagas, SOM Toolbox for Matlab 5, Report A57, 2000, Available at: www.cis.hut.fi/projects/somtoolbox/package/papers/techrep.pdf
See Also
set.seed
[Package SOMEnv version 1.1.2 Index]