NGBoostClassifierOptions<T>
Options & Configuration · AiDotNet.Models.Options
Configuration options for NGBoost (Natural Gradient Boosting) classifier models.
Inheritance: ModelOptions → ClassifierOptions<T> → NGBoostClassifierOptions<T>
For Beginners
NGBoost is like regular gradient boosting for classification, but it produces better-calibrated probability estimates. When NGBoost says there’s a 70% chance of class A, approximately 70% of similar predictions will actually be class A.
This calibration is valuable because you can trust the probability estimates for decision-making, not just the predicted class.
How It Works
NGBoost is a probabilistic gradient boosting algorithm that outputs well-calibrated class probabilities. It uses natural gradients (gradients preconditioned by the Fisher Information Matrix) for more stable optimization.
Constructors
| Constructor | Summary |
|---|---|
NGBoostClassifierOptions() |
Properties
| Property | Summary |
|---|---|
SplitCriterion SplitCriterion { get; set; } |
Gets or sets the split criterion for the base trees. |
bool UseNaturalGradient { get; set; } |
Gets or sets whether to use natural gradients. |
bool Verbose { get; set; } |
Gets or sets whether to verbose output during training. |
double ColumnSubsampleRatio { get; set; } |
Gets or sets whether to apply column subsampling. |
double LearningRate { get; set; } |
Gets or sets the learning rate (shrinkage factor). |
double MaxFeatures { get; set; } |
Gets or sets the fraction of features to consider for splits. |
double SubsampleRatio { get; set; } |
Gets or sets the subsampling ratio for each iteration. |
int MaxDepth { get; set; } |
Gets or sets the maximum depth of trees. |
int MinSamplesLeaf { get; set; } |
Gets or sets the minimum number of samples required to be at a leaf node. |
int MinSamplesSplit { get; set; } |
Gets or sets the minimum number of samples required to split an internal node. |
int NumberOfIterations { get; set; } |
Gets or sets the number of boosting iterations (trees per class). |
int VerboseEval { get; set; } |
Gets or sets how often to print progress (every N iterations). |
int? EarlyStoppingRounds { get; set; } |
Gets or sets the number of early stopping rounds. |