DataSplitter
Helpers & Utilities · AiDotNet.Preprocessing.DataPreparation
Simple utility for splitting data into train/validation/test sets.
For Beginners
Before training a model, you need to split your data:
- Training set: The data your model learns from (typically 70-80%)
- Validation set: Used to tune hyperparameters and prevent overfitting (typically 10-15%)
- Test set: Final evaluation of model performance (typically 10-15%)
Methods
| Method | Summary |
|---|---|
ValueTuple<TInput, TOutput, TInput, TOutput, TInput, TOutput> Split(TInput X, TOutput y, double trainRatio, double validationRatio, bool shuffle, int randomSeed, int embargo) |
Splits data into training, validation, and test sets. |