trainSVMs: Trains an SVM object.

Description Usage Arguments Details Value Documentation for command-line parameters of svm-train See Also

View source: R/liquidSVM.R

Description

Should only be used by experts! This uses the liquidSVM C++ implementation to solve all SVMs on the hyper-parameter grid.

Usage

1
2
3
trainSVMs(model, ..., solver = c("kernel.rule", "ls", "hinge",
  "quantile"), command.args = NULL, do.select = FALSE,
  useCells = FALSE, d = NULL)

Arguments

model

the svm-model

...

configuration parameters set before training

solver

solver to use: one of "kernel.rule","ls","hinge","quantile","expectile"

command.args

further arguments aranged in a list, corresponding to the arguments of the command line interface to svm-train, e.g. list(d=2,W=2) is equivalent to svm-train -d 2 -W 2. See command-args for details.

do.select

if not FALSE then the model is selected. This parameter can be used as a list of named arguments to be passed to the select phase

useCells

if TRUE partitions the problem (equivalent to partition_choice=6)

d

level of display information

Details

SVMs are solved for all tasks/cells/folds and entries in the hyper-parameter grid and can afterwards be selected using selectSVMs. A model even can be retrained using other parameters, reusing the training data. The training phase is usually the most time-consuming phase, and therefore for bigger problems it is recommended to use display=1 to get some progress information.

See command-args for details.

Value

a table giving training and validation errors and more internal statistic for every SVM that was trained. This is also recorded in model$train_errors.

Documentation for command-line parameters of svm-train

The following parameters can be used as well:



See Also

command-args, svm, init.liquidSVM, selectSVMs, predict.liquidSVM, test.liquidSVM and clean.liquidSVM


liquidSVM documentation built on Sept. 15, 2019, 1:02 a.m.