Description Usage Arguments Value Author(s) See Also Examples
Map a data matrix onto a trained gsom object.
1 2 |
gsom_object |
a trained gsom map (either unsupervised, as obtained by train.gsom, or supervised, as returned by train_xy.gsom). |
df |
Data matrix, with rows corresponding to objects, and columns to the dimensions the gsom object was trained with |
retaindata |
if set to TRUE a copy of the mapped data (unscaled) will be added to the returned object. |
... |
not used. |
Returns a S3 object of type "gsom" containing:
nodes$position |
the location of the nodes on the map. |
nodes$codes |
codes that were established during the training for each node and dimension of the data. |
nodes$freq |
how many times each node was the best matching node for the mapped matrix. |
mapped$bmn |
contains the best matching node for each of the data that was mapped. |
mapped$dist |
distance from best matching node for each row of the mapped data-matrix. |
data |
Unscaled copy of the data that was mapped. |
Alex Hunziker
train.gsom, predict.gsom
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.