initialize,SOMnn-method {som.nn} | R Documentation |
Constructor of SOMnn Class
Description
The constructor creates a new object of type SOMnn.
Usage
## S4 method for signature '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
)
Arguments
.Object |
SOMnn object |
name |
optional name of the model. |
codes |
|
qerror |
sum of the mapping errors of the training data. |
class.idx |
|
classes |
|
class.counts |
|
class.freqs |
|
confusion |
|
measures |
|
accuracy |
Overall accuracy. |
xdim |
number of neurons in x-direction of the som. |
ydim |
number of neurons in y-direction of the som. |
len.total |
total number of training steps, performed to create the model. |
toroidal |
|
norm |
|
norm.center |
vector of centers for each column of training data. |
norm.scale |
vector of scale factors for each column of training data. |
dist.fun |
|
max.dist |
maximum distance |
strict |
Minimum vote for the winner (if the winner's vote is smaller than strict,
"unknown" is reported as class label ( |
Details
The constructor needs not to be called directly, because the normal
way to create a SOMnn object is to use som.nn.train
.
Examples
## Not run:
new.som <- new("SOMnn", name = name,
codes = codes,
qerror = qerror,
classes = classes,
class.idx = class.idx,
class.counts = class.counts,
class.freqs = class.freqs,
confusion = confusion,
measures = measures,
accuracy = accuracy,
xdim = xdim,
ydim = ydim,
len.total = len.total,
toroidal = toroidal,
norm = norm,
norm.center = norm.center,
norm.scale = norm.scale,
dist.fun = dist.fun,
max.dist = max.dist.
strict = strict)
## End(Not run)