BatchSOM {multisom} | R Documentation |
Self-Organizing Map: Batch version
Description
This function implements the batch version of the kohonen algorithm
Usage
BatchSOM(data,grid = somgrid(),min.radius=0.0001,
max.radius=0.002,maxit=1000,
init=c("random","sample","linear"),
radius.type=c("gaussian","bubble","cutgauss","ep"))
Arguments
data |
data to be used |
grid |
a grid for the representatives.The numbers of nodes should be approximately equal to 5*sqrt(n), which n denotes the number of sample. |
min.radius |
the minimum neighbourhood radius |
max.radius |
the maximum neighbourhood radius |
maxit |
the maximum number of iterations to be done |
init |
the method to be used to initialize the prototypes.The following
are permitted:
|
radius.type |
the neighborhood function type. The following are permitted:
|
Value
classif |
a vector of integer indicating to which unit each observation has been assigned |
codes |
a matrix of code vectors |
grid |
the grid, an object of class "somgrid" |
Author(s)
Sarra Chair and Malika Charrad
References
Kohonen, T. (1995) Self-Organizing Maps. Springer-Verlag.
Brian Ripley, William Venables (2015), class: Functions for Classification,
URL https://cran.r-project.org/package=class.
Jun Yan (2010), som: Self-Organizing Map, URL https://cran.r-project.org/package=som.
Examples
data<-iris[,-c(5)]
BatchSOM(data,grid = somgrid(7,7,"hexagonal"),min.radius=0.0001,
max.radius=0.002,maxit=1000,"random","gaussian")