# NOT RUN {
# use iris data set
# build random forests model with certain parameters
modelRF <- CoreModel(Species ~ ., iris, model="rf",
selectionEstimator="MDL",minNodeWeightRF=5,rfNoTrees=100)
print(modelRF)
# prediction with node distribution
pred <- predict(modelRF, iris, rfPredictClass=FALSE, type="both")
# print(pred)
destroyModels(modelRF) # clean up
# }
Run the code above in your browser using DataLab