Destroys internal representation of a given model or all constructed models. As side effect the memory used by the model(s) is freed.
The model structure as returned by
The function destroys the
model structure as returned by
Subsequent work with this model is no longer possible.
model=NULL (default value) all generated models are destroyed and
memory used by their internal representation is freed.
There is no return value.
Marko Robnik-Sikonja, Petr Savicky
1 2 3 4 5 6 7 8 9 10 11 12 13
# use iris data set # build random forests model with certain parameters model <- CoreModel(Species ~ ., iris, model="rf", selectionEstimator="MDL", minNodeWeightRF=5, rfNoTrees=100, maxThreads=1) # prediction pred <- predict(model, iris, rfPredictClass=FALSE) # print(pred) # destruction of model's internal representation destroyModels(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.