class IdBasedCrossValidator implements CrossValidator {

	@Override
	public Iterator<Fold> iterator() {
		return new AbstractIterator2<Fold>() {
			int fold = 0;
			@Override
			protected Fold getNext() {
				if (fold < numFolds) {
					return new FoldImplementation(fold++);
				}
				return finished();
			}
		};
	}

	public  IdBasedCrossValidator(Dataset dataset, int numFolds, String idValueName);
	public  IdBasedCrossValidator(Dataset dataset, String idValueName);

}