Package weka.classifiers
Interface RandomSplitGenerator
-
- All Superinterfaces:
adams.core.Destroyable
,InstancesViewSupporter
,Iterator<WekaTrainTestSetContainer>
,adams.core.option.OptionHandler
,adams.core.Randomizable
,adams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
,Serializable
,adams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
,SplitGenerator
- All Known Implementing Classes:
BestBinnedNumericClassRandomSplitGenerator
,BinnedNumericClassRandomSplitGenerator
,DefaultRandomSplitGenerator
,GroupedBinnedNumericClassRandomSplitGenerator
,GroupedRandomSplitGenerator
public interface RandomSplitGenerator extends SplitGenerator, adams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
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.data.weka.InstancesViewSupporter
getUseViews, setUseViews
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface weka.classifiers.SplitGenerator
getData, hasNext, initializeIterator, next, remove, setData, toString
-
-
-
-
Method Detail
-
setPercentage
void setPercentage(double value)
Sets the split percentage.- Specified by:
setPercentage
in interfaceadams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Parameters:
value
- the percentage (0-1)
-
getPercentage
double getPercentage()
Returns the split percentage.- Specified by:
getPercentage
in interfaceadams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Returns:
- the percentage (0-1)
-
setPreserveOrder
void setPreserveOrder(boolean value)
Sets whether to preserve the order.- Specified by:
setPreserveOrder
in interfaceadams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Parameters:
value
- true if to preserve order
-
getPreserveOrder
boolean getPreserveOrder()
Returns whether to preserve the order.- Specified by:
getPreserveOrder
in interfaceadams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Returns:
- true if to preserve order
-
-