This code defines a function get_rules that extracts decision rules from individual decision trees in a Random Forest, and then applies this function to all the trees in the Random Forest model. It then organizes these rules along with associated class labels, sample sizes, and class probabilities into a DataFrame, and filters this DataFrame to only include rules that predict the positive class label.
GabeOw/Random-Forest-Rule-Extraction
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|