min_depth_distribution: Calculate minimal depth distribution of a random forest

View source: R/min_depth_distribution.R

min_depth_distributionR Documentation

Calculate minimal depth distribution of a random forest

Description

Get minimal depth values for all trees in a random forest

Usage

min_depth_distribution(forest)

Arguments

forest

A randomForest or ranger object

Value

A data frame with the value of minimal depth for every variable in every tree

Examples

min_depth_distribution(randomForest::randomForest(Species ~ ., data = iris, ntree = 100))
min_depth_distribution(ranger::ranger(Species ~ ., data = iris, num.trees = 100))


ModelOriented/randomForestExplainer documentation built on March 23, 2024, 10:31 p.m.