define_cv function

Define cross-validation scheme and training parameters