SOM | R Documentation |
Run the SOM algorithm for clustering.
SOM(
d,
xdim = floor(sqrt(nrow(d))),
ydim = floor(sqrt(nrow(d))),
rlen = 10000,
post = c("none", "single", "ward"),
k = NULL,
...
)
d |
The dataset ( |
xdim, ydim |
The dimensions of the grid. |
rlen |
The number of iterations. |
post |
The post-treatement method: |
k |
The number of cluster (only used if |
... |
Other parameters. |
The fitted Kohonen's map as an object of class som
.
plot.som
, som-class
, som
require (datasets)
data (iris)
SOM (iris [, -5], xdim = 5, ydim = 5, post = "ward", k = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.