Description Usage Arguments Value Note Note Author(s) Examples
Constructs a SOM, returns an object of class 'map'.
1 |
data |
a dataframe where each row contains an unlabeled training instance. |
labels |
a vector or dataframe with one label for each observation in data. |
xdim |
the x-dimension of the map. (default=10) |
ydim |
the y-dimension of the map. (default=5) |
alpha |
the learning rate, should be a positive non-zero real number. (default=0.3) |
train |
the number of training iterations. (default=1000) |
algorithm |
training algorithm selection switch. (default="vsom") |
object of type 'map'.
You have a choice of training algorithms:
"vsom" - vectorized stochastic learning, this is a highly optimized version of stochastic training written in FORTRAN 9X.
"som" - the traditional stochastic learning algorithm written in C++/TNT.
"batchsom" - batch version of the SOM training algorithm, written in C.
"experimental" - experimental implementation of vectorized stochastic learning implemented directly in R.
If your training data does not have any labels you can construct a simple label vector as follows: labels <- 1:nrow(training.data). If you let the labels default to the NULL value then no labels will be shown in the map visualization.
Lutz Hamel, Benjamin Ott, Gregory Breard
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.