Description Usage Arguments Details Value Methods (by class) See Also Examples
Should only be used by experts!
This initializes a svm
object and allocates in C++ an SVM model to which it keeps a reference.
1 2 3 4 5 6 7 8 9 | init.liquidSVM(x, y, ...)
## S3 method for class 'formula'
init.liquidSVM(x, y, ..., d = NULL)
## Default S3 method:
init.liquidSVM(x, y, scenario = NULL,
useCells = NULL, ..., sampleWeights = NULL, groupIds = NULL,
ids = NULL, d = NULL)
|
x |
either a formula or the features |
y |
either the data or the labels corresponding to the features |
... |
configuration parameters, see Configuration. Can be |
d |
level of display information |
scenario |
configures the model for a learning scenario:
E.g. |
useCells |
if |
sampleWeights |
vector of weights for every sample or |
groupIds |
vector of integer group ids for every sample or |
ids |
vector of integer ids for every sample or |
Since it binds heap memory it has to be released using clean.liquidSVM
which
is also performed at garbage collection.
The training data can either be provided using a formula and a corresponding data.frame
or the features and the labels are given directly.
an object of type svm
formula
: Initialize SVM model using a a formula and data
default
: Initialize SVM model using a data frame and a label vector
svm
, predict.liquidSVM
, test.liquidSVM
and clean.liquidSVM
1 2 | modelTrees <- init.liquidSVM(Height ~ Girth + Volume, trees[1:20, ]) # least squares
modelIris <- init.liquidSVM(Species ~ ., iris) # multiclass classification
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.