Description Usage Arguments Details Value Author(s) References See Also Examples
Perform the learning process of the network with online algorithm.
1 |
object |
a som object |
number.iter |
number of learning process' step. It won't have effect if |
order |
vector of length |
max.alpha |
the maximum amount of change during learning process. |
min.alpha |
the minimum amount of change during learning process. |
max.rayon |
the maximum radius during learning process. |
min.rayon |
the minimum radii during learning process. |
step.eval.si |
integer. A vector will be created, it will have values of evenly spaced numbers from 1 to |
Be carefull with step.eval.si
, the smallest is the value, the longer it will take time to process.
alpha decrease linearly from max.alpha
to min.alpha
over number.iter
updates.
rayon decrease linearly from max.rayon
to min.rayon
over number.iter
updates.
a som object.
David Gohel
Kohonen, T. (1995). Self-Organizing Maps
som
learnBatch
plot.som
summary.som
predict.som
biplot.som
getWeights
setWeights
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(MASS)
lcrabs <- log(crabs[, 4:8])
lcrabs.som <- som ( formula = ~ . , data = lcrabs
, neighborhood = "uniform"
, grid = grid ( xdim = 10 , ydim = 10 , type = "hexagonal" )
, weights.min = min (lcrabs), weights.max = max (lcrabs)
)
# train the network
lcrabs.som <- learn( lcrabs.som , number.iter = 500 , max.alpha = 0.3, step.eval.si = 50)
# plot energy function and print a summary
plot( lcrabs.som , "energy")
summary( lcrabs.som )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.