Description Usage Arguments Details Value Note Author(s) See Also
Creates a list of parameters for the som.tune
function.
1 2 3 4 | som.tunecontrol(somgrid, init = "pca", ninit = 1, assignment = "single",
radii = c(2, 2/3 * somgrid$diam), nradii = 10,
innernradii = 30, maxiter = 75, annealing = "power",
kernel = "gaussian", criterion = error.quantisation)
|
somgrid |
an object of class |
init |
prototypes initialization method. Valid values are |
ninit |
number of initial prototype values to test (only relevant
for |
assignment |
assignment method with valid values |
radii |
the range of radii to explore, i.e., a vector of length two containing a minimal and a maximal value of radii. The default minimum radius is 2 (almost purely local k-means like optimization) while the maximum is equal to two third of the diameter of the prior struture |
nradii |
number of radii to generate from the range specified in |
innernradii |
number of radii to use in the annealing scheme
during the SOM fitting (see |
maxiter |
maximal number of iteration for each radius during
fitting (see |
annealing |
annealing scheme with valid values |
kernel |
kernel chosen between |
criterion |
an error criterion, i.e., a function that evaluate the quality of a fitted som on a dataset |
The parameters init
, assignment
, annealing
and
kernel
can contain a list of values rather than a single
value. In this case, all combinations are compared in
som.tune
. For instance, if all parameters have default
values expect for kernel=c("gaussian","linear")
then
som.tune
will fit 10 SOM with a gaussian kernel as well as
10 SOM with a linear kernel and select the best one.
The error criterion is a function which takes a object returned by the
appropriate batchsom
method (e.g. a "somnum"
object
for standard vector data and a "relationalsom"
object for
dissimilarity data) and returns a numerical value. som.tune
optimises for small values of this criterion.
a list containing all the above parameters with one exception: 'radii' contains a vector of radii to test rather than the bounds specified in the function call.
this function is modelled after David Mayer's tune.control function.
Fabrice Rossi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.