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.AbstractContainerA 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 StringVALUE_FITNESSthe identifier for the fitness.static StringVALUE_MEASUREthe identifier for the measure.static StringVALUE_SETUPthe identifier for the setup.static StringVALUE_WEIGHTSthe identifier for the weights.static StringVALUE_WEIGHTSSTRthe 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 voidinitHelp()Initializes the help strings.booleanisValid()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:
initHelpin classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
namesin interfaceadams.flow.container.Container- Specified by:
namesin 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:
isValidin interfaceadams.flow.container.Container- Specified by:
isValidin classadams.flow.container.AbstractContainer- Returns:
- true if all the necessary values are available
-
-