Table of Contents

Class BaggingClassifierOptions<T>

Namespace
AiDotNet.Classification.Meta
Assembly
AiDotNet.dll

Configuration options for Bagging classifier.

public class BaggingClassifierOptions<T> : MetaClassifierOptions<T>

Type Parameters

T

The data type used for calculations.

Inheritance
BaggingClassifierOptions<T>
Inherited Members

Properties

Bootstrap

Gets or sets whether to sample with replacement.

public bool Bootstrap { get; set; }

Property Value

bool

True for bootstrap sampling. Default is true.

MaxFeatures

Gets or sets the fraction of features to use for each estimator.

public double MaxFeatures { get; set; }

Property Value

double

Fraction of features (0.0 to 1.0). Default is 1.0.

MaxSamples

Gets or sets the fraction of samples to draw for each estimator.

public double MaxSamples { get; set; }

Property Value

double

Fraction of samples (0.0 to 1.0). Default is 1.0.

NumEstimators

Gets or sets the number of base estimators.

public int NumEstimators { get; set; }

Property Value

int

Number of estimators. Default is 10.

RandomState

Gets or sets the random state for reproducibility.

public int? RandomState { get; set; }

Property Value

int?