predict,SOMnn-method | R Documentation |
SOMnn
Predicts categories for a table of data, based on the hexagonal som in the model.
This S4 method is a wrapper for the predict method stored in the slot predict
of a model of type SOMnn.
## S4 method for signature 'SOMnn'
predict(object, x)
object |
object of type |
x |
|
The function returns the winner neuron in codes
for
each test vector in x
.
x
is organised as one vector per row and must have
the same number of columns (i.e. dimensions) and the identical column names
as stored in the SOMnn object.
If data have been normalised during training, the same normalisation is applied to the unknown data to be predicted.
Probablilities are softmax normalised by default.
\code{data.frame} with columns: \code{winner}, \code{x}, \code{y}, the predicted probabilities for all categories and the prediction as category index (column name \code{prediction}) and class label (column name \code{pred.class}).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.