Holdout cross-validation generator
Cross-validation iterators in scikit-learn are simply generator objects, that is, Python objects that implement the __iter__
method and that for each call to this method return (or more precisely, yield
) the indices or a boolean mask for the train and test set. Hence, implementing new cross-validation iterators that behave as …