Class TabularAugmenterBase<T>
- Namespace
- AiDotNet.Augmentation.Tabular
- Assembly
- AiDotNet.dll
Base class for tabular data augmentations.
public abstract class TabularAugmenterBase<T> : AugmentationBase<T, Matrix<T>>, IAugmentation<T, Matrix<T>>
Type Parameters
TThe numeric type for calculations.
- Inheritance
-
AugmentationBase<T, Matrix<T>>TabularAugmenterBase<T>
- Implements
-
IAugmentation<T, Matrix<T>>
- Derived
- Inherited Members
Remarks
For Beginners: Tabular augmentation transforms structured data (like spreadsheets) to improve model generalization. Unlike image augmentation which uses geometric transforms, tabular augmentation focuses on:
- Adding noise to numerical features
- Mixing samples together (MixUp)
- Dropping features for regularization
- Synthetic sample generation (SMOTE)
Constructors
TabularAugmenterBase(double)
Initializes a new tabular augmentation.
protected TabularAugmenterBase(double probability = 1)
Parameters
probabilitydoubleThe probability of applying this augmentation (0.0 to 1.0).
Methods
GetFeatureCount(Matrix<T>)
Gets the number of features in the input data.
protected int GetFeatureCount(Matrix<T> data)
Parameters
dataMatrix<T>The input matrix (rows=samples, columns=features).
Returns
- int
The number of features.
GetSampleCount(Matrix<T>)
Gets the number of samples in the input data.
protected int GetSampleCount(Matrix<T> data)
Parameters
dataMatrix<T>The input matrix (rows=samples, columns=features).
Returns
- int
The number of samples.