Prepare for using cross-validation method to choose model