Package adams.data.splitgenerator
Interface StratifiableSplitGenerator<I,O>
-
- All Superinterfaces:
Destroyable
,Iterator<O>
,OptionHandler
,Randomizable
,Serializable
,SplitGenerator<I,O>
- All Known Subinterfaces:
CrossValidationFoldGenerator
- All Known Implementing Classes:
BinnedNumericClassCrossValidationFoldGenerator
,DefaultCrossValidationFoldGenerator
,GroupedBinnedNumericClassCrossValidationFoldGenerator
,GroupedCrossValidationFoldGenerator
,GroupedCrossValidationFoldGeneratorUsingNumericClassValues
public interface StratifiableSplitGenerator<I,O> extends SplitGenerator<I,O>
Interface for split generators that can stratify the randomized data.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getStratify()
Returns whether to stratify the data (in case of nominal class).void
setStratify(boolean value)
Sets whether to stratify the data (nominal class).-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.core.Randomizable
getSeed, seedTipText, setSeed
-
Methods inherited from interface adams.data.splitgenerator.SplitGenerator
getData, hasNext, initializeIterator, next, remove, setData, toString
-
-
-
-
Method Detail
-
setStratify
void setStratify(boolean value)
Sets whether to stratify the data (nominal class).- Parameters:
value
- whether to stratify the data (nominal class)
-
getStratify
boolean getStratify()
Returns whether to stratify the data (in case of nominal class).- Returns:
- true if to stratify
-
-