Progress on writeFolds4TrainingCurve, not finished