Package weka.datagenerators
Class ClassificationGenerator
java.lang.Object
weka.datagenerators.DataGenerator
weka.datagenerators.ClassificationGenerator
- All Implemented Interfaces:
Serializable,OptionHandler,Randomizable,RevisionHandler
Abstract class for data generators for classifiers.
- Version:
- $Revision: 10203 $
- Author:
- Gabi Schmidberger (gabi@cs.waikato.ac.nz), FracPete (fracpete at waikato dot ac dot nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the number of examples, given by option.String[]Gets the current settings of the classifier.Returns an enumeration describing the available options.Returns the tip text for this propertyvoidsetNumExamples(int numExamples) Sets the number of examples, given by option.voidsetOptions(String[] options) Sets the options.Methods inherited from class weka.datagenerators.DataGenerator
debugTipText, defaultOutput, defineDataFormat, enumToVector, formatTipText, generateExample, generateExamples, generateFinished, generateStart, getDatasetFormat, getDebug, getEpilogue, getNumExamplesAct, getOutput, getPrologue, getRandom, getRelationName, getSeed, getSingleModeFlag, makeData, outputTipText, randomTipText, relationNameTipText, runDataGenerator, seedTipText, setDatasetFormat, setDebug, setOutput, setRandom, setRelationName, setSeedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface weka.core.RevisionHandler
getRevision
-
Constructor Details
-
ClassificationGenerator
public ClassificationGenerator()initializes with default values
-
-
Method Details
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptionsin interfaceOptionHandler- Overrides:
listOptionsin classDataGenerator- Returns:
- an enumeration of all the available options.
-
setOptions
Sets the options.- Specified by:
setOptionsin interfaceOptionHandler- Overrides:
setOptionsin classDataGenerator- Parameters:
options- the options- Throws:
Exception- if invalid option
-
getOptions
Gets the current settings of the classifier.- Specified by:
getOptionsin interfaceOptionHandler- Overrides:
getOptionsin classDataGenerator- Returns:
- an array of strings suitable for passing to setOptions
- See Also:
-
DataGenerator.removeBlacklist(String[])
-
setNumExamples
public void setNumExamples(int numExamples) Sets the number of examples, given by option.- Parameters:
numExamples- the new number of examples
-
getNumExamples
public int getNumExamples()Gets the number of examples, given by option.- Returns:
- the number of examples, given by option
-
numExamplesTipText
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-