crossvalidation.py generates evenly spaced intervals, as specified by the user