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 SOMnn
predict(object, x)
\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}).
object of type SOMnn
.
data.frame
with rows of data to be predicted.
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.