MLCore::RandomForestParameters
MLCore::RandomForestParameters
Parameters for Random Forest classifier. More…
#include <MLModelParameters.hpp>
Inherits from MLCore::MLModelParametersBase
Public Attributes
| Name | |
|---|---|
| int | num_trees Number of trees in the ensemble. |
| int | minimum_leaf_size Minimum number of samples in a leaf node. |
| double | minimum_gain_split Minimum gain to split a node. |
| int | maximum_depth Maximum tree depth (0 = unlimited). |
Additional inherited members
Public Functions inherited from MLCore::MLModelParametersBase
| Name | |
|---|---|
| virtual | ~MLModelParametersBase() =default |
Detailed Description
struct MLCore::RandomForestParameters;Parameters for Random Forest classifier.
Maps to mlpack::RandomForest hyperparameters.
Public Attributes Documentation
variable num_trees
int num_trees = 10;Number of trees in the ensemble.
variable minimum_leaf_size
int minimum_leaf_size = 1;Minimum number of samples in a leaf node.
variable minimum_gain_split
double minimum_gain_split = 1e-7;Minimum gain to split a node.
variable maximum_depth
int maximum_depth = 0;Maximum tree depth (0 = unlimited).
Updated on 2026-11-13 at 20:25:41 +0000