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.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.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:
setDatain interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>- Parameters:
value- the data
-
getData
weka.core.Instances getData()
Returns the original data.- Specified by:
getDatain 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:
initializeIteratorin 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:
hasNextin interfaceIterator<WekaTrainTestSetContainer>- Specified by:
hasNextin 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:
nextin interfaceIterator<WekaTrainTestSetContainer>- Specified by:
nextin 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:
removein interfaceIterator<WekaTrainTestSetContainer>- Specified by:
removein interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>
-
toString
String toString()
Returns a short description of the generator.- Specified by:
toStringin interfaceadams.data.splitgenerator.SplitGenerator<weka.core.Instances,WekaTrainTestSetContainer>- Overrides:
toStringin classObject- Returns:
- a short description
-
-