Package adams.flow.container
Class WekaGeneticAlgorithmContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.WekaGeneticAlgorithmContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,Serializable
public class WekaGeneticAlgorithmContainer extends adams.flow.container.AbstractContainer
A container for genetic algorithms output (setup, measure, fitness).- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_FITNESS
the identifier for the fitness.static String
VALUE_MEASURE
the identifier for the measure.static String
VALUE_SETUP
the identifier for the setup.static String
VALUE_WEIGHTS
the identifier for the weights.static String
VALUE_WEIGHTSSTR
the identifier for the weights string.
-
Constructor Summary
Constructors Constructor Description WekaGeneticAlgorithmContainer()
Initializes the container.WekaGeneticAlgorithmContainer(weka.classifiers.Classifier cls)
Initializes the container the setup.WekaGeneticAlgorithmContainer(weka.classifiers.Classifier cls, Measure measure, Double fitness, String weightsStr, int[] weights)
Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initHelp()
Initializes the help strings.boolean
isValid()
Checks whether the setup of the container is valid.Iterator<String>
names()
Returns all value names that can be used (theoretically).
-
-
-
Field Detail
-
VALUE_SETUP
public static final String VALUE_SETUP
the identifier for the setup.- See Also:
- Constant Field Values
-
VALUE_MEASURE
public static final String VALUE_MEASURE
the identifier for the measure.- See Also:
- Constant Field Values
-
VALUE_FITNESS
public static final String VALUE_FITNESS
the identifier for the fitness.- See Also:
- Constant Field Values
-
VALUE_WEIGHTSSTR
public static final String VALUE_WEIGHTSSTR
the identifier for the weights string.- See Also:
- Constant Field Values
-
VALUE_WEIGHTS
public static final String VALUE_WEIGHTS
the identifier for the weights.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WekaGeneticAlgorithmContainer
public WekaGeneticAlgorithmContainer()
Initializes the container.
Only used for generating help information.
-
WekaGeneticAlgorithmContainer
public WekaGeneticAlgorithmContainer(weka.classifiers.Classifier cls)
Initializes the container the setup.- Parameters:
cls
- the setup to use
-
WekaGeneticAlgorithmContainer
public WekaGeneticAlgorithmContainer(weka.classifiers.Classifier cls, Measure measure, Double fitness, String weightsStr, int[] weights)
Initializes the container.- Parameters:
cls
- the setup to usemeasure
- the measure to use, can be nullfitness
- the fitness to use, can be nullweightsStr
- the weights string to use, can be nullweights
- the weights to use, can be null
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelp
in classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceadams.flow.container.Container
- Specified by:
names
in classadams.flow.container.AbstractContainer
- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValid
in interfaceadams.flow.container.Container
- Specified by:
isValid
in classadams.flow.container.AbstractContainer
- Returns:
- true if all the necessary values are available
-
-