| SOMnn-class {som.nn} | R Documentation |
An S4 class to hold a model for the topological classifier som.nn
Description
Objects of type SOMnn can be created by training a self-organising map
with som.nn.train.
Slots
nameoptional name of the model.
datetime and date of creation.
codesdata.framewith codebook vectors of the som.qerrorsum of the mapping errors of the training data.
class.idxcolumn index of column with class labels in input data.
classescharactervector with names of categories.class.countsdata.framewith class hits for each neuron.class.freqsdata.framewith class frequencies for each neuron (freqs sum up to 1).normlogical; if TRUE, data is normalised before training and mapping. Parameters for normalisation of training data is stored in the model and applied before mapping of test data.norm.centervector of centers for each column of training data.
norm.scalevector of scale factors for each column of training data.
confusiondata.framewith confusion matrix for training data.measuresdata.framewith classes as rows and the columns sensitivity, specificity and accuracy for each class.accuracyThe overall accuracy calculated based on the confusion matrix cmat:
acc = sum(diag(cmat)) / sum(cmat).xdimnumber of neurons in x-direction of the som.
ydimnumber of neurons in y-direction of the som.
len.totaltotal number of training steps, performed to create the model.
toroidallogical; if TRUE, the map is toroidal (i.e. borderless).dist.funfunction; kernel for the kNN classifier.max.distmaximum distance for the kNN classifier.
strictMinimum vote for the winner (if the winner's vote is smaller than strict, "unknown" is reported as class label (
default = 0.8).