DoubleCVSplitter<T>
Models & Types · AiDotNet.Preprocessing.DataPreparation.Splitting.Nested
Double Cross-Validation splitter (alias for Nested CV with equal inner/outer folds).
Inheritance: DataSplitterBase<T> → DoubleCVSplitter<T>
For Beginners
Double CV is a common configuration of Nested CV where both the inner and outer loops use the same number of folds (typically 5 or 10).
How It Works
When to Use:
- When you need unbiased performance estimation during hyperparameter search
- For comparing different model families fairly
- When computational resources allow (k² model fits)
Constructors
| Constructor | Summary |
|---|---|
DoubleCVSplitter(int folds, bool shuffle, int randomSeed) |
Creates a new Double CV splitter. |
Properties
| Property | Summary |
|---|---|
bool SupportsValidation { get; } |
|
int NumSplits { get; } |
|
string Description { get; } |
Methods
| Method | Summary |
|---|---|
DataSplitResult<T> Split(Matrix<T> X, Vector<T> y) |
|
IEnumerable<DataSplitResult<T>> GetSplits(Matrix<T> X, Vector<T> y) |