Intermediate results will be written to file after each cross-validation