Analysis of EHG recordings for the prediction of term and preterm delivery. This script gives an overview of different techniques that can be used when data is imbalanced, with emphasis on proper cross-validation, especially when data is oversampled. More background and details can be found on my blog: www.marcoaltini.com/blog