Class RonWeasley.RonWeasleyJob

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, adams.core.Stoppable, adams.core.StoppableWithFeedback, adams.multiprocess.Job, adams.multiprocess.JobWithOwner<RonWeasley>, Serializable
    Enclosing class:
    RonWeasley

    public static class RonWeasley.RonWeasleyJob
    extends adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithm.ClassifierBasedGeneticAlgorithmJob<RonWeasley>
    A job class specific to Ron Weasley.
    Version:
    $Revision: 4322 $
    Author:
    dale
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithm.ClassifierBasedGeneticAlgorithmJob

        m_ClassLabelIndex, m_Data, m_Folds, m_Measure, m_Seed, m_TestData
      • Fields inherited from class adams.opt.genetic.AbstractGeneticAlgorithm.GeneticAlgorithmJob

        m_Chromosome, m_Fitness, m_Genetic, m_Weights
      • Fields inherited from class adams.multiprocess.AbstractJob

        m_Complete, m_ExecutionError, m_JobCompleteListener, m_JobInfo, m_ProgressInfo, m_Stopped
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Constructor Summary

      Constructors 
      Constructor Description
      RonWeasleyJob​(RonWeasley g, int num, int[] w, weka.core.Instances data, weka.core.Instances testData)
      Initializes the job.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calcNewFitness()
      Calculates the new fitness.
      String getRemoveAsString()
      Generates a range string of attributes to keep (= one has to use the inverse matching sense with the Remove filter).
      • Methods inherited from class adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithm.ClassifierBasedGeneticAlgorithmJob

        assembleSetup, createFileName, evaluateClassifier, evaluateClassifier, generateOutput, getFolds, getInstances, getMeasure, getSeed, getTestInstances, outputDataset, outputSetup, postProcess, preProcessCheck
      • Methods inherited from class adams.opt.genetic.AbstractGeneticAlgorithm.GeneticAlgorithmJob

        cleanUp, getChromosome, getFitness, getOwner, getWeights, postProcessCheck, process, toString, weightsToString, weightsToString
      • Methods inherited from class adams.multiprocess.AbstractJob

        execute, getAdditionalErrorInformation, getExecutionError, getJobCompleteListener, getJobInfo, getProgressInfo, hasExecutionError, isComplete, isStopped, jobCompleted, setJobCompleteListener, setJobInfo, setProgressInfo, stopExecution
      • Methods inherited from class adams.core.logging.CustomLoggingLevelObject

        setLoggingLevel
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.multiprocess.Job

        execute, getExecutionError, getJobCompleteListener, getJobInfo, hasExecutionError, isComplete, jobCompleted, setJobCompleteListener
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
      • Methods inherited from interface adams.core.logging.LoggingSupporter

        getLogger, isLoggingEnabled
      • Methods inherited from interface adams.core.Stoppable

        stopExecution
      • Methods inherited from interface adams.core.StoppableWithFeedback

        isStopped
    • Constructor Detail

      • RonWeasleyJob

        public RonWeasleyJob​(RonWeasley g,
                             int num,
                             int[] w,
                             weka.core.Instances data,
                             weka.core.Instances testData)
        Initializes the job.
        Parameters:
        g - the algorithm object this job belongs to
        num - the number of chromsomes
        w - the initial weights
        data - the data to use
        testData - the test data to use, null for cross-validation
    • Method Detail

      • getRemoveAsString

        public String getRemoveAsString()
        Generates a range string of attributes to keep (= one has to use the inverse matching sense with the Remove filter).
        Returns:
        the range of attributes to keep
      • calcNewFitness

        public void calcNewFitness()
        Calculates the new fitness.
        Specified by:
        calcNewFitness in class adams.opt.genetic.AbstractGeneticAlgorithm.GeneticAlgorithmJob<RonWeasley>