You are working on a dataset with an imbalanced class distribution. How would you apply Cross-Validation to ensure that each fold maintains the same class distribution?
- Applying Cross-Validation without folding
- Using Leave-One-Out Cross-Validation
- Using k-fold Cross-Validation with random sampling
- Using stratified k-fold Cross-Validation
Using stratified k-fold Cross-Validation ensures that each fold maintains the same class distribution by having the same proportion of each class as the entire dataset. It's a suitable choice for imbalanced class distribution, as it guarantees that each fold is a representative sample of the overall class proportions in the dataset.
Loading...
Related Quiz
- Which layer in a CNN is responsible for reducing the spatial dimensions of the input data?
- Can LDA be used for both classification and dimensionality reduction?
- __________ pruning is a technique where a decision tree is reduced by turning some branch nodes into leaf nodes.
- In LDA, the goal is to maximize the ___________ variance and minimize the ___________ variance.
- How can you determine the degree of the polynomial in Polynomial Regression?