Class DarkLord

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.Pausable, adams.core.Randomizable, adams.core.ShallowCopySupporter<adams.opt.genetic.AbstractGeneticAlgorithm>, adams.core.SizeOfHandler, adams.core.Stoppable, adams.core.StoppableWithFeedback, adams.core.ThreadLimiter, adams.event.GeneticFitnessChangeNotifier, Serializable

    public class DarkLord
    extends AbstractClassifierBasedGeneticAlgorithmWithSecondEvaluation
    Author:
    Dale (dale at cs dot waikato dot ac dot nz), FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • DarkLord

        public DarkLord()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • newJob

        protected DarkLord.DarkLordJob newJob​(int chromosome,
                                              int[] w,
                                              weka.core.Instances data,
                                              weka.core.Instances testData)
        Creates a new Job instance.
        Specified by:
        newJob in class AbstractClassifierBasedGeneticAlgorithm
        Parameters:
        chromosome - the number of chromosomes
        w - the initial weights
        data - the data to use
        testData - the test data to use, null for cross-validation
        Returns:
        the instance
      • storeSetup

        protected adams.core.Properties storeSetup​(weka.core.Instances data,
                                                   adams.opt.genetic.AbstractGeneticAlgorithm.GeneticAlgorithmJob job)
        Generates a Properties file that stores information on the setup of the genetic algorithm. E.g., it backs up the original relation name. The generated properties file will be used as new relation name for the data.
        Overrides:
        storeSetup in class AbstractClassifierBasedGeneticAlgorithm
        Parameters:
        data - the data to create the setup for
        job - the associated job
        Returns:
        the generated setup
        See Also:
        AbstractClassifierBasedGeneticAlgorithm.PROPS_RELATION