Description Usage Arguments Details Value Author(s) See Also Examples

Get numerical characteristics of the trees in a RF model related to the size and depth.

1 | ```
getRFsizes(model, type=c("size", "sumdepth"))
``` |

`model` |
The model structure as returned by |

`type` |
The required characteristics. |

Size is the number of leaves. The sum of depths means the sum of the depth of all leaves.

Numerical vector of the length equal to the number of trees in RF.

Petr Savicky

1 2 3 4 5 6 7 8 9 10 11 | ```
# 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=50, maxThreads=1)
getRFsizes(modelRF)
destroyModels(modelRF) # clean up
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.