Package weka.classifiers
Interface SplitGenerator
-
- All Superinterfaces:
Destroyable,InstancesViewSupporter,Iterator<WekaTrainTestSetContainer>,OptionHandler,Randomizable,Serializable,SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- All Known Subinterfaces:
CrossValidationFoldGenerator,RandomSplitGenerator
- All Known Implementing Classes:
AbstractSplitGenerator,BestBinnedNumericClassRandomSplitGenerator,BinnedNumericClassCrossValidationFoldGenerator,BinnedNumericClassRandomSplitGenerator,DefaultCrossValidationFoldGenerator,DefaultRandomSplitGenerator,GroupedBinnedNumericClassCrossValidationFoldGenerator,GroupedBinnedNumericClassRandomSplitGenerator,GroupedCrossValidationFoldGenerator,GroupedCrossValidationFoldGeneratorUsingNumericClassValues,GroupedRandomSplitGenerator,LeaveOneOutByValueGenerator,MultiLevelSplitGenerator
public interface SplitGenerator extends SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>, InstancesViewSupporter
Interface for helper classes that generate dataset splits.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description weka.core.InstancesgetData()Returns the original data.booleanhasNext()Returns true if the iteration has more elements.voidinitializeIterator()Initializes the iterator (gets implicitly called, when calling next()).WekaTrainTestSetContainernext()Returns the next element in the iteration.voidremove()Unsupported.voidsetData(weka.core.Instances value)Sets the original data.StringtoString()Returns a short description of the generator.-
Methods inherited from interface adams.core.Destroyable
destroy
-
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 adams.core.Randomizable
getSeed, seedTipText, setSeed
-
-
-
-
Method Detail
-
setData
void setData(weka.core.Instances value)
Sets the original data.- Specified by:
setDatain interfaceSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>- Parameters:
value- the data
-
getData
weka.core.Instances getData()
Returns the original data.- Specified by:
getDatain interfaceSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>- Returns:
- the data
-
initializeIterator
void initializeIterator()
Initializes the iterator (gets implicitly called, when calling next()).- Specified by:
initializeIteratorin interfaceSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
-
hasNext
boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceIterator<WekaTrainTestSetContainer>- Specified by:
hasNextin interfaceSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>- Returns:
- true if the iterator has more elements.
-
next
WekaTrainTestSetContainer next()
Returns the next element in the iteration.- Specified by:
nextin interfaceIterator<WekaTrainTestSetContainer>- Specified by:
nextin interfaceSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.
-
remove
void remove()
Unsupported.- Specified by:
removein interfaceIterator<WekaTrainTestSetContainer>- Specified by:
removein interfaceSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
-
toString
String toString()
Returns a short description of the generator.- Specified by:
toStringin interfaceSplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>- Overrides:
toStringin classObject- Returns:
- a short description
-
-