Function converts given model from internal structures in C++ to R's data structures.
The model structure as returned by
The function converts the model referenced by
model from C++ internal structures
to R's lists. Currently it is implemented only for random forests models.
For random forest a resulting list contains first all the information on the forest level, followed by the list of trees. For each tree the nodes are recursively nested with indication of node type (leaf or internal node) and than required information for that data type.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# uses iris data set # build random forests model with certain parameters, # do not make too many and too large trees modelRF <- CoreModel(Species ~ ., iris, model="rf", selectionEstimator="MDL", minNodeWeightRF=50, rfNoTrees=5, maxThreads=1) print(modelRF) # get the structure of the forest forest <- getCoreModel(modelRF) # forest destroyModels(modelRF) # clean up
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.