Description Usage Arguments Details Examples
The constructor creates a new object of type SOMnn.
1 2 3 4 | ## S4 method for signature 'SOMnn'
initialize(.Object, name, codes, qerror, class.idx, classes,
class.counts, class.freqs, confusion, measures, predict, xdim, ydim,
len.total, toroidal, norm, norm.center, norm.scale, dist.fun, max.dist)
|
.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 |
|
predict |
predict function to be used to predict unknowm samples |
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 σ for the kNN classifier. |
The constructor needs not to be called directly, because the normal
way to create a SOMnn object is to use som.nn.train
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## 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,
predict = som.nn.predict,
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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.