# use iris data set
# build random forests model with certain parameters
model <- CoreModel(Species ~ ., iris, model="rf",
selectionEstimator="MDL",minNodeWeight=5,rfNoTrees=100)
# prediction
pred <- predict.CoreModel(model, iris, rfPredictClass=FALSE)
print(pred)
# destruction of model's internal representation
destroyModels(model)
Run the code above in your browser using DataLab