![]() |
Ultra 0.9.4
|
Public Attributes | |
| int | training_perc {70} |
| int | validation_perc {30} |
| bool | shuffle {true} |
| Whether or not to shuffle the data before splitting. | |
| bool | stratify {true} |
| bool ultra::src::holdout_validation::params::stratify {true} |
Some classification problems can exhibit a large imbalance in the distribution of the target classes: for instance there could be several times more negative samples than positive samples. In such cases it's recommended to use stratified sampling to ensure that relative class frequencies is approximately preserved in train and validation sets.
| int ultra::src::holdout_validation::params::training_perc {70} |
Percentage of the dataset used for training.
| int ultra::src::holdout_validation::params::validation_perc {30} |
Percentage of the dataset used for validation.
Valid range: 0...(100 - training_perc); if negative or too large, it is set to 100 - training_perc.