liquidSVM (version 1.2.2)

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

Description

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

Usage

# S3 method for 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

Run this code
# 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
# }

Run the code above in your browser using DataLab