Package weka.classifiers
Interface SplitGenerator
-
- All Superinterfaces:
adams.core.Destroyable
,InstancesViewSupporter
,Iterator<WekaTrainTestSetContainer>
,adams.core.option.OptionHandler
,adams.core.Randomizable
,Serializable
,adams.data.splitgenerator.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 adams.data.splitgenerator.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.Instances
getData()
Returns the original data.boolean
hasNext()
Returns true if the iteration has more elements.void
initializeIterator()
Initializes the iterator (gets implicitly called, when calling next()).WekaTrainTestSetContainer
next()
Returns the next element in the iteration.void
remove()
Unsupported.void
setData(weka.core.Instances value)
Sets the original data.String
toString()
Returns a short description of the generator.-
Methods inherited from interface adams.data.weka.InstancesViewSupporter
getUseViews, setUseViews
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
setData
void setData(weka.core.Instances value)
Sets the original data.- Specified by:
setData
in interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Parameters:
value
- the data
-
getData
weka.core.Instances getData()
Returns the original data.- Specified by:
getData
in interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Returns:
- the data
-
initializeIterator
void initializeIterator()
Initializes the iterator (gets implicitly called, when calling next()).- Specified by:
initializeIterator
in interfaceadams.data.splitgenerator.SplitGenerator<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:
hasNext
in interfaceIterator<WekaTrainTestSetContainer>
- Specified by:
hasNext
in interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Returns:
- true if the iterator has more elements.
-
next
WekaTrainTestSetContainer next()
Returns the next element in the iteration.- Specified by:
next
in interfaceIterator<WekaTrainTestSetContainer>
- Specified by:
next
in interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException
- iteration has no more elements.
-
remove
void remove()
Unsupported.- Specified by:
remove
in interfaceIterator<WekaTrainTestSetContainer>
- Specified by:
remove
in interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
-
toString
String toString()
Returns a short description of the generator.- Specified by:
toString
in interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
- Overrides:
toString
in classObject
- Returns:
- a short description
-
-