clean.liquidSVM: Force to release the internal memory of the C++ objects...

Description Usage Arguments See Also Examples

View source: R/liquidSVM.R

Description

Usually this has not to be done by the user since liquidSVM harnesses garbage collection offered by R.

Usage

1
2
## S3 method for class 'liquidSVM'
clean(model, warn = TRUE, ...)

Arguments

model

the SVM model as returned by init.liquidSVM

warn

if TRUE issue warning if the model already was deleted

...

not used at the moment

See Also

init.liquidSVM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
## Multiclass classification
modelIris <- svm(Species ~ ., iris)
y <- predict(modelIris, iris)

## Least Squares
modelTrees <- svm(Height ~ Girth + Volume, trees)
y <- predict(modelTrees, trees)
plot(trees$Height, y)
test(modelTrees, trees)

clean(modelTrees)
clean(modelIris)
# now predict(modelTrees, ...) would not be possible any more

## End(Not run)

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