AugmentationConfig<T, TInput>
Options & Configuration · AiDotNet.Augmentation
Strongly-typed augmentation configuration parameterised by the model’s
numeric type and input type. Exposes a compile-time-checked
Augmenter slot in place of the base class’s object?CustomAugmenter property — IntelliSense
guides callers to a valid IAugmentation
implementation and the compiler rejects type-mismatch at the call site
instead of failing as a runtime cast deep inside
AiModelBuilder.BuildSupervisedInternalAsync (review #1368).
Inheritance: AugmentationConfig → AugmentationConfig<T, TInput>
Example
using AiDotNet.Augmentation;
var builder = new AiModelBuilder<double, Matrix<double>, Vector<double>>();
var config = new AugmentationConfig<float, Tensor<float>>
{
Augmenter = new Compose<float, Tensor<float>>(), // fully typed — IntelliSense + compile check
ImageSettings = new ImageAugmentationSettings { EnableFlips = true },
};
builder.ConfigureAugmentation(config);
Constructors
| Constructor | Summary |
|---|---|
AugmentationConfig() |
Default-constructed strongly-typed configuration. |
Properties
| Property | Summary |
|---|---|
IAugmentation<T, TInput> Augmenter { get; set; } |
Strongly-typed augmenter. |
Methods
| Method | Summary |
|---|---|
AugmentationConfig<T, TInput> ForAudio() |
Audio-modality preset. |
AugmentationConfig<T, TInput> ForImages() |
Image-modality preset with industry-standard defaults. |
AugmentationConfig<T, TInput> ForTabular() |
Tabular-modality preset. |
AugmentationConfig<T, TInput> ForText() |
Text-modality preset. |
AugmentationConfig<T, TInput> ForVideo() |
Video-modality preset. |