adams.flow.transformer.WekaGeneticAlgorithm
Applies the genetic algorithm to the incoming dataset.
Forwards the best setup(s) after the algorithm finishes.
A callable sink can be specified for receiving intermediate performance results.
Flow input/output:
- input: weka.core.Instances, adams.flow.container.WekaGeneticAlgorithmInitializationContainer
- output: adams.flow.container.WekaGeneticAlgorithmContainer
Container information:
- adams.flow.container.WekaGeneticAlgorithmInitializationContainer:
- Algorithm: genetic algorithm object; adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithm
- Data: training data; weka.core.Instances
- adams.flow.container.WekaGeneticAlgorithmContainer:
- Setup: classifier object; weka.classifiers.Classifier
- Measure: measure used for fitness; adams.opt.genetic.Measure
- Fitness: fitness score; java.lang.Double
- WeightsStr: all the weights; java.lang.String
- Weights: weights; array of int
The logging level for outputting errors and debugging output.
command-line | -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> |
default | WARNING |
min-user-mode | Expert |
The name of the actor.
command-line | -name <java.lang.String> |
default | WekaGeneticAlgorithm |
The annotations to attach to this actor.
command-line | -annotation <adams.core.base.BaseAnnotation> |
default |
|
If set to true, transformation is skipped and the input token is just forwarded as it is.
command-line | -skip <boolean> |
default | false |
If set to true, the flow execution at this level gets stopped in case this actor encounters an error; the error gets propagated; useful for critical actors.
command-line | -stop-flow-on-error <boolean> |
default | false |
min-user-mode | Expert |
If enabled, then no errors are output in the console; Note: the enclosing actor handler must have this enabled as well.
command-line | -silent <boolean> |
default | false |
min-user-mode | Expert |
If enabled, outputs the containers as array rather than one-by-one.
command-line | -output-array <boolean> |
default | false |
The genetic algorithm to apply to the dataset.
command-line | -algorithm <adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithm> |
default | adams.opt.genetic.DarkLord -stopping-criterion adams.opt.genetic.stopping.MaxIterations -initial-setups-provider adams.opt.genetic.initialsetups.EmptyInitialSetupsProvider -generator weka.classifiers.DefaultCrossValidationFoldGenerator -classifier weka.classifiers.rules.ZeroR -evaluation-post-processor adams.flow.transformer.wekaevaluationpostprocessor.PassThrough -setup-upload adams.opt.genetic.setupupload.Null |
The name of the callable sink to forward to the adams.flow.container.WekaGeneticAlgorithmContainer containers.
command-line | -callable <adams.flow.core.CallableActorReference> |
default | unknown |
If enabled, then the callable sink is optional, ie no error is raised if not found, merely ignored.
command-line | -optional <boolean> |
default | false |
The storage item with the test data; cross-validation is performed if not present or the algorithm doesn't support test data handling.
command-line | -test-data <adams.flow.control.StorageName> |
default | storage |