Description Usage Arguments Details Value Author(s) See Also Examples
mapToUnit
is used to map additional data to a fitted
Self-Organising Map. The main use case is the mapping of variables that were not used during the fitting (e.g., factors).
1 | mapToUnit(som, values)
|
som |
an object of class |
values |
a matrix or a data frame of observations to map on to the SOM's unit. The number of observations must be equal to the number of observations used to fit the SOM |
The goal of this function is not to assign new observations to a fitted
SOM but rather to map additional variables (see
predict.somnum
for new observations assignment). The mapping is based only on the clustering result of the SOM: if observation number k was assigned to unit l at the end of the fitting process, then values[k,]
is mapped to the l-th component of the resulting list.
a list of length the number of units in the SOM. Each component contains the subset of values
that is mapped to the corresponding unit.
Fabrice Rossi
predict.somnum
for new observations assignment
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.