Class ClassifierConfig
Configuration for classifier creation.
Implements
Inherited Members
Namespace: MOSAIC.Components.MachineLearning.Factory
Assembly: MOSAIC.dll
Syntax
public sealed record ClassifierConfig : IEquatable<ClassifierConfig>
Properties
ConfidenceThreshold
Rejection threshold for the Threshold classifier. Default: 0.0 (no rejection).
Declaration
public double ConfidenceThreshold { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
FeatureDim
Number of random Fourier features (D). Only used for RFF. Default: 300.
Declaration
public int FeatureDim { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
K
Number of neighbors for kNN. Default: 5.
Declaration
public int K { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Lambda
L2 regularization parameter (λ). Default: 0.001.
Declaration
public double Lambda { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
LdaRegularization
Regularization added to within-class scatter diagonal (LDA). Default: 1e-6.
Declaration
public double LdaRegularization { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
LearningRate
Learning rate for SGD-based classifiers (Softmax, SVM). Default: 0.01.
Declaration
public double LearningRate { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
MaxDepth
Maximum tree depth. Default: 15.
Declaration
public int MaxDepth { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
MaxSamples
Maximum stored kNN samples (0 = unlimited). Default: 10000.
Declaration
public int MaxSamples { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
MinSamplesLeaf
Minimum samples per leaf node. Default: 2.
Declaration
public int MinSamplesLeaf { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
NumTrees
Number of trees in the forest. Default: 100.
Declaration
public int NumTrees { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
RejectClass
Class label returned on rejection. Default: 0 (rest).
Declaration
public int RejectClass { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Seed
Random seed. Null = random. Set for reproducibility.
Declaration
public int? Seed { get; init; }
Property Value
| Type | Description |
|---|---|
| int? |
Sigma
RBF kernel bandwidth (σ). Only used for RFF. Default: 1.0.
Declaration
public double Sigma { get; init; }
Property Value
| Type | Description |
|---|---|
| double |
WeightByDistance
Weight kNN votes by inverse distance. Default: true.
Declaration
public bool WeightByDistance { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |