glassbox.models.ensemble¶
Random Forest ensemble models.
RandomForestClassifier
¶
Bases: BaseRandomForest
Random Forest classifier using Decision Tree classification models.
Initialize the random forest classifier.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_estimators
|
int
|
The number of trees in the forest. |
100
|
max_depth
|
int
|
Maximum depth of individual trees. |
100
|
min_samples_split
|
int
|
Minimum number of samples required to split an internal node. |
2
|
Source code in glassbox/models/ensemble/classifier.py
RandomForestRegressor
¶
Bases: BaseRandomForest
Random Forest regressor using Decision Tree regression models.
Initialize the random forest regressor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n_estimators
|
int
|
The number of trees in the forest. |
100
|
max_depth
|
int
|
Maximum depth of individual trees. |
100
|
min_samples_split
|
int
|
Minimum number of samples required to split an internal node. |
2
|