Class WekaGeneticAlgorithm

  • All Implemented Interfaces:
    AdditionalInformationHandler, ArrayProvider, CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, Pausable, QuickInfoSupporter, ShallowCopySupporter<Actor>, SizeOfHandler, Stoppable, StoppableWithFeedback, VariablesInspectionHandler, FlowPauseStateListener, GeneticFitnessChangeListener, VariableChangeListener, Actor, ArrayProvider, CallableActorUser, ErrorHandler, InputConsumer, OptionalCallableActor, OutputProducer, Serializable, Comparable

    public class WekaGeneticAlgorithm
    extends AbstractArrayProvider
    implements GeneticFitnessChangeListener, CallableActorUser, OptionalCallableActor, FlowPauseStateListener, Pausable
    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.

    - accepts:
    - generates:

    Container information:
    - adams.flow.container.WekaGeneticAlgorithmInitializationContainer: Algorithm, Data
    - adams.flow.container.WekaGeneticAlgorithmContainer: Setup, Measure, Fitness, WeightsStr, Weights

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -name <java.lang.String> (property: name)
        The name of the actor.
        default: WekaGeneticAlgorithm
    -annotation <adams.core.base.BaseAnnotation> (property: annotations)
        The annotations to attach to this actor.
    -skip <boolean> (property: skip)
        If set to true, transformation is skipped and the input token is just forwarded
        as it is.
        default: false
    -stop-flow-on-error <boolean> (property: stopFlowOnError)
        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
        default: false
    -silent <boolean> (property: silent)
        If enabled, then no errors are output in the console; Note: the enclosing
        actor handler must have this enabled as well.
        default: false
    -output-array <boolean> (property: outputArray)
        If enabled, outputs the containers as array rather than one-by-one.
        default: false
    -algorithm <adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithm> (property: algorithm)
        The genetic algorithm to apply to the dataset.
        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 -setup-upload adams.opt.genetic.setupupload.Null
    -callable <adams.flow.core.CallableActorReference> (property: callableName)
        The name of the callable sink to forward to the adams.flow.container.WekaGeneticAlgorithmContainer 
        default: unknown
    -optional <boolean> (property: optional)
        If enabled, then the callable sink is optional, ie no error is raised if 
        not found, merely ignored.
        default: false
    -test-data <adams.flow.control.StorageName> (property: testData)
        The storage item with the test data; cross-validation is performed if not 
        present or the algorithm doesn't support test data handling.
        default: storage
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail


        public static final String BACKUP_CALLABLEACTOR
        the key for backing up the callable actor.
        See Also:
        Constant Field Values

        public static final String BACKUP_CONFIGURED
        the key for backing up the configured state.
        See Also:
        Constant Field Values
      • m_CallableActor

        protected Actor m_CallableActor
        the callable actor.
      • m_Configured

        protected boolean m_Configured
        whether the callable actor has been configured.
      • m_Optional

        protected boolean m_Optional
        whether the callable actor is optional.
      • m_TestData

        protected StorageName m_TestData
        the storage name of the test data.
      • m_PauseStateManager

        protected PauseStateManager m_PauseStateManager
        the pause state manager.
      • m_JobRunnerSetup

        protected transient JobRunnerSetup m_JobRunnerSetup
        the jobrunner setup.
    • Constructor Detail

      • WekaGeneticAlgorithm

        public WekaGeneticAlgorithm()