Package adams.data.splitgenerator
Interface RandomSplitGenerator<I,O>
-
- Type Parameters:
I
- the input dataO
- the output data
- All Superinterfaces:
Destroyable
,Iterator<O>
,OptionHandler
,Randomizable
,Serializable
,SplitGenerator<I,O>
- All Known Subinterfaces:
RandomSplitGenerator
- All Known Implementing Classes:
BestBinnedNumericClassRandomSplitGenerator
,BinnedNumericClassRandomSplitGenerator
,DefaultRandomSplitGenerator
,DefaultRandomSplitGenerator
,GroupedBinnedNumericClassRandomSplitGenerator
,GroupedRandomSplitGenerator
public interface RandomSplitGenerator<I,O> extends SplitGenerator<I,O>
Interface for generators of random splits of datasets.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getPercentage()
Returns the split percentage.boolean
getPreserveOrder()
Returns whether to preserve the order.void
setPercentage(double value)
Sets the split percentage.void
setPreserveOrder(boolean value)
Sets whether to preserve the order.-
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
-
setPercentage
void setPercentage(double value)
Sets the split percentage.- Parameters:
value
- the percentage (0-1)
-
getPercentage
double getPercentage()
Returns the split percentage.- Returns:
- the percentage (0-1)
-
setPreserveOrder
void setPreserveOrder(boolean value)
Sets whether to preserve the order.- Parameters:
value
- true if to preserve order
-
getPreserveOrder
boolean getPreserveOrder()
Returns whether to preserve the order.- Returns:
- true if to preserve order
-
-