add cross-validation-like code to repl