som_kmeansRProg: K-means algorithm applied for a specific number of clusters

Description Usage Arguments Details Value Author(s) References See Also

View source: R/som_kmeansRProg.R

Description

The training is run for a custom number of epochs for k number of clusters

Usage

1
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


SOMEnv documentation built on July 26, 2021, 5:06 p.m.