if(mFoldsInput != null) {
Integer folds = TupleUtilities.getNumber(readBlock(mFoldsInput), INPUT_FOLDS);
Evaluation ev = new Evaluation(dataset);
if(mSeedInput != null) {
Integer seed = TupleUtilities.getNumber(readBlock(mSeedInput), INPUT_SEED);
ev.crossValidateModel(classifier, dataset, folds, new Random(seed));
}
else
ev.crossValidateModel(classifier, dataset, folds, new Random(123));
if(mEvaluationOutput != null) {
mEvaluationOutput.write(ev.toSummaryString());