Learn R Programming

CRE (version 0.2.7)

extract_rules: 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)

Value

A vector of (causal) decision rules.

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.