map | R Documentation |
Map a data onto a trained SOM.
map(x, ...) ## S3 method for class 'missSOM' map(x, newdata, maxNA.fraction = x$maxNA.fraction, ...)
x |
an object of class |
... |
Currently ignored. |
newdata |
a |
maxNA.fraction |
parameters that usually will be taken from the |
A list with elements
unit.classif |
a vector of units that are closest to the objects in the data. |
dists |
distances of the objects to the closest units. Distance measures are the same ones used in training the map. |
imputeSOM
data(wines) set.seed(7) training <- sample(nrow(wines), 150) Xtraining <- scale(wines[training, ]) somnet <- imputeSOM(Xtraining, somgrid(5, 5, "hexagonal")) map(somnet, scale(wines[-training, ], center=attr(Xtraining, "scaled:center"), scale=attr(Xtraining, "scaled:scale")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.