The constructor creates a new object of type SOMnn.
# S4 method for SOMnn
initialize(
.Object,
name,
codes,
qerror,
class.idx,
classes,
class.counts,
class.freqs,
confusion,
measures,
accuracy,
xdim,
ydim,
len.total,
toroidal,
norm,
norm.center,
norm.scale,
dist.fun,
max.dist,
strict
)
SOMnn object
optional name of the model.
data.frame
with codebook vectors of the som.
sum of the mapping errors of the training data.
numeric
index of column with categories.
character
vector with names of categories.
data.frame
with class hits for each neuron.
data.frame
with class frequencies for each neuron
(freqs sum up to 1).
data.frame
with confusion matrix for training data.
data.frame
with classes as rows and the
columns sensitivity, specificity and accuracy for each class.
Overall accuracy.
number of neurons in x-direction of the som.
number of neurons in y-direction of the som.
total number of training steps, performed to create the model.
logical
; if TRUE, the map is toroidal (i.e. borderless).
logical
; 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.
vector of centers for each column of training data.
vector of scale factors for each column of training data.
function
; kernel for the kNN classifier.
maximum distance \(\sigma\) for the kNN classifier.
Minimum vote for the winner (if the winner's vote is smaller than strict,
"unknown" is reported as class label (default = 0.8
).
The constructor needs not to be called directly, because the normal
way to create a SOMnn object is to use som.nn.train
.