extract_rules: Extract (causal) decision rules

View source: R/extract_rules.R

extract_rulesR Documentation

Extract (causal) decision rules

Description

Extracts causal rules from the random forest or the gradient boosting algorithms.

Usage

extract_rules(treelist, X, max_depth, digits = 2)

Arguments

treelist

A list of decision trees.

X

Features matrix.

max_depth

A number of top levels from each tree considered.

digits

A Number of digits for rounding decision rules to extract conditions.

Value

A vector of (causal) decision rules.


CRE documentation built on Oct. 19, 2024, 5:07 p.m.