Package adams.flow.container
Class WekaGeneticAlgorithmInitializationContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.WekaGeneticAlgorithmInitializationContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,Serializable
public class WekaGeneticAlgorithmInitializationContainer extends adams.flow.container.AbstractContainer
A container for initializing genetic algorithms.- 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_ALGORITHM
the identifier for the algorithm instance.static String
VALUE_DATA
the identifier for the data.
-
Constructor Summary
Constructors Constructor Description WekaGeneticAlgorithmInitializationContainer()
Initializes the container.WekaGeneticAlgorithmInitializationContainer(AbstractClassifierBasedGeneticAlgorithm algorithm, weka.core.Instances data)
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_ALGORITHM
public static final String VALUE_ALGORITHM
the identifier for the algorithm instance.- See Also:
- Constant Field Values
-
VALUE_DATA
public static final String VALUE_DATA
the identifier for the data.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WekaGeneticAlgorithmInitializationContainer
public WekaGeneticAlgorithmInitializationContainer()
Initializes the container.
Only used for generating help information.
-
WekaGeneticAlgorithmInitializationContainer
public WekaGeneticAlgorithmInitializationContainer(AbstractClassifierBasedGeneticAlgorithm algorithm, weka.core.Instances data)
Initializes the container.- Parameters:
algorithm
- the algorithm to usedata
- the training data
-
-
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
-
-