predict,SOMnn-method {som.nn} | R Documentation |
predict method for S4 class SOMnn
Description
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.
Usage
## S4 method for signature 'SOMnn'
predict(object, x)
Arguments
object |
object of type |
x |
|
Details
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.
Value
\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}).
[Package som.nn version 1.4.4 Index]