Class 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
    • 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 use
        measure - the measure to use, can be null
        fitness - the fitness to use, can be null
        weightsStr - the weights string to use, can be null
        weights - the weights to use, can be null
    • Method Detail

      • initHelp

        protected void initHelp()
        Initializes the help strings.
        Overrides:
        initHelp in class adams.flow.container.AbstractContainer
      • names

        public Iterator<String> names()
        Returns all value names that can be used (theoretically).
        Specified by:
        names in interface adams.flow.container.Container
        Specified by:
        names in class adams.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 interface adams.flow.container.Container
        Specified by:
        isValid in class adams.flow.container.AbstractContainer
        Returns:
        true if all the necessary values are available