# use iris data
# build random forests model with certain parameters
modelRF <- CoreModel(Species ~ ., iris, model="rf",
selectionEstimator="MDL",minNodeWeightRF=5,
rfNoTrees=50, maxThreads=1)
# writes all the used parameters to file
paramCoreIO(modelRF, "parameters.par", io="write")
# and reads them back into the model
paramCoreIO(modelRF, "parameters.par", io="read")
# clean up for the sake of R package checks
file.remove("parameters.par")
destroyModels(modelRF) # clean up
Run the code above in your browser using DataLab