hard20 pts · first answer countsdata-leakageclass-imbalance
SMOTE applied before cross-validation
A notebook runs SMOTE on the whole dataset and then does 5-fold cross-validation. The scores are much higher than on a later holdout. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Scaling before splittingMachine Learning Engineer
- Target encoding without leakageMachine Learning Engineer
- Several scans per patientMachine Learning Engineer
- Test accuracy that is too highMachine Learning Engineer
- A feature that is too goodMachine Learning Engineer
- Weight given by class_weight balancedMachine Learning Engineer
- A rolling mean that peeks aheadMachine Learning Engineer
- Choosing features before cross-validatingMachine Learning Engineer