calc_SVM_args: Calculate SVM - Arguments

calc_SVM_argsR Documentation

Calculate SVM - Arguments

Description

The following parameters can be used in the ... argument in function getap, also within function gdmm, to override the values in the analysis procedure file and so to modify the calculation of SVM models - see examples.

getap(...)
gdmm(dataset, ap=getap(...))

Arguments

do.svm

Logical. If used in getap, if classification via svm should be performed in the given dataset.

svm.classOn

Character vector. One or more class variables to define the grouping used for classification.

svm.testCV

Logical, if the errors of the test-data should be crossvalidated. If set to true, CV and testing is repeated in alternating datasets. See below.

svm.percTest

Numeric length one. The percentage of the dataset that should be set aside for testing the models; these data are never seen during training and crossvalidation.

svm.cvBootCutoff

The minimum number of observations (W) that should be in the smallest subgroup (as defined by the classification grouping variable) *AFTER* the split into svm.valid crossvalidation segments (below). If W is equal or higher than svm.cvBootCutoff, the crossvalidation is done via splitting the training data in svm.valid (see below) segments, otherwise the crossvalidation is done via bootstrap resampling, with the number of bootstrap iterations resulting from the multiplication of the number of observations in this smallest subgroup (as defined by the classification grouping variable) in *all* of the training data with svm.cvBootFactor. To never perform the CV of the training data via bootstrap, set the parameter cl_gen_neverBootstrapForCV in the settings.r file to TRUE. An example: With svm.cvBootCutoff set to 15 and a 8-fold crossvalidation svm.valid <- 8, the required minimum number of observations in the smallest subgroup *after* the split in 8 segments would be 15, and in all the training data to perform the desired 8-fold CV would be (8x15=) 120, in what case then 8 times 15 observations will form the test data to be projected into models made from (120-15=) 105 observations. If there would be less than 120 observations, lets say for example, only 100 observations in the smallest group as defined by the classification grouping variable, bootstrap resampling with svm.cvBootFactor * 100 iterations would be performed. In this example, if we would also be satisfied with a 5-fold crossvalidation, then we would have enough data: 100 / 5 = 20, and with the svm.cvBootCutoff value being 15, the 5-fold crossvalidation would be performed.

svm.cvBootFactor

The factor used to multiply the number of observations within the smallest subgroup defined by the classification grouping variable with, resulting in the number of iterations of a possible bootstrap crossvalidation of the trainign data – see .cvBootCutoff.

svm.valid

The number of segments the training data should be divided into in case of a "traditional" crossvalidation of the training data; see above.

svm.pcaRed

Logical, if variable reduction via PCA should be applied; if TRUE, the subsequent classifications are performed on the PCA scores, see svm.pcaNComp below.

svm.pcaNComp

Character or integer vector. Provide the character "max" to use the maximum number of components (i.e. the number of observations minus 1), or an integer vector specifying the components resp. their scores to be used for SVM classification.

Details

For a list of all parameters that can be used in the ... argument in getap and in the plot functions please see anproc_file.

See Also

gdmm, siWlg for reducing the number of wavelengths in a dataset

Other Calc. arguments: calc_NNET_args, calc_aqg_args, calc_discrimAnalysis_args, calc_pca_args, calc_pls_args, calc_randomForest_args, calc_sim_args, split_dataset

Other Classification functions: calc_NNET_args, calc_discrimAnalysis_args, calc_randomForest_args, plot_classifX_indepPred()

Other SVM documentation: plot_SVM_args, plot_svm,aquap_cube-method


bpollner/aquap2 documentation built on March 29, 2024, 7:33 a.m.