Description Usage Arguments Details Value Author(s) References See Also
View source: R/som_kmeansRProg.R
The training is run for a custom number of epochs for k number of clusters
1 | som_kmeansRProg(codebook, k, epochs, seed = NULL)
|
codebook |
SOM codebook |
k |
Number of clusters |
epochs |
Number of training epochs |
seed |
Number for set.seed function |
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.
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
Sabina Licen, Pierluigi Barbieri
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
set.seed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.