Make validation interval configurable in cross-validation