countSplitsPerVar: Count Splits Per Variable

Description Usage Arguments Value

View source: R/tree_traversal_util.R

Description

This function counts the number of times each variable was used to split a tree.

Usage

1
countSplitsPerVar(ranger_obj_forest)

Arguments

ranger_obj_forest

A ranger object from the ranger package, which was created with param write.forest set to TRUE. In other words, it must have a 'forest' property.

Value

A dataframe with one column of counts, and one column of normalized counts. Rows are labeled by variable names.


climbeR documentation built on May 2, 2019, 3:37 p.m.