Architecture
InsideForest is organized into layers that separate rule extraction, region prioritization, and reporting.
Main layers
- Forest layer:
scikit-learnor PySpark forests managed byTrees. - Region layer:
Regionsmerges rules, computes metrics, and creates ranges. - Label layer:
Labelsand the helpers incluster_selectorconsolidate clusters. - Utility layer:
ModelsandMetaExtractordocument outputs.
Data flow
- The user trains or supplies a forest.
Treesextracts rules and converts them into tabular structures.Regionscomputes metrics, prioritizes, and builds regions.cluster_selectorhelpers consolidate clusters based on the selected strategy.Labels,Models, andMetaExtractorproduce final reports.
Extensibility
- Add new backends by implementing the
Treesinterface. - Define custom strategies by extending
cluster_selectorutilities. - Extend reporting by adding helpers around
LabelsorMetaExtractor.
Continue with Configuration to learn how to tune parameters and with the API reference for detailed module docs.