View source: R/extract_rules.R
extract_rules | R Documentation |
Extracts causal rules from the random forest or the gradient boosting algorithms.
extract_rules(treelist, X, max_depth, digits = 2)
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. |
A vector of (causal) decision rules.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.