powered by
Get minimal depth values for all trees in a random forest
min_depth_distribution(forest)
A randomForest or ranger object
A data frame with the value of minimal depth for every variable in every tree
# NOT RUN { min_depth_distribution(randomForest::randomForest(Species ~ ., data = iris, ntree = 100)) min_depth_distribution(ranger::ranger(Species ~ ., data = iris, num.trees = 100)) # }
Run the code above in your browser using DataLab