Package adams.opt.genetic
Class Hermione.HermioneJob
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.multiprocess.AbstractJob
-
- adams.opt.genetic.AbstractGeneticAlgorithm.GeneticAlgorithmJob<T>
-
- 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<Hermione>
,Serializable
- Enclosing class:
- Hermione
public static class Hermione.HermioneJob extends AbstractClassifierBasedGeneticAlgorithmWithSecondEvaluation.ClassifierBasedGeneticAlgorithmWithSecondEvaluationJob<Hermione>
A job class specific to Hermione.- Author:
- dale
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithmWithSecondEvaluation.ClassifierBasedGeneticAlgorithmWithSecondEvaluationJob
m_SecondFitness, m_SecondFolds, m_SecondSeed, m_UseSecondEvaluation
-
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
-
-
Constructor Summary
Constructors Constructor Description HermioneJob(Hermione 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 protected Map<String,Object>
assembleSetup(double fitness, weka.classifiers.Classifier cls, int chromosome, int[] weights)
Assembles the data for the textual setup output.void
calcNewFitness()
Calculates the new fitness.-
Methods inherited from class adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithmWithSecondEvaluation.ClassifierBasedGeneticAlgorithmWithSecondEvaluationJob
getSecondFitness, getSecondFolds, getSecondSeed, getUseSecondEvaluation
-
Methods inherited from class adams.opt.genetic.AbstractClassifierBasedGeneticAlgorithm.ClassifierBasedGeneticAlgorithmJob
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.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
HermioneJob
public HermioneJob(Hermione g, int num, int[] w, weka.core.Instances data, weka.core.Instances testData)
Initializes the job.- Parameters:
g
- the algorithm object this job belongs tonum
- the number of chromsomesw
- the initial weightsdata
- the data to usetestData
- the test data to use, null for cross-validation
-
-
Method Detail
-
assembleSetup
protected Map<String,Object> assembleSetup(double fitness, weka.classifiers.Classifier cls, int chromosome, int[] weights)
Assembles the data for the textual setup output.- Overrides:
assembleSetup
in classAbstractClassifierBasedGeneticAlgorithm.ClassifierBasedGeneticAlgorithmJob<Hermione>
- Parameters:
fitness
- the current fitnesscls
- the current classifierchromosome
- the chromosome responsibleweights
- the weights- Returns:
- the data
-
calcNewFitness
public void calcNewFitness()
Calculates the new fitness.- Specified by:
calcNewFitness
in classadams.opt.genetic.AbstractGeneticAlgorithm.GeneticAlgorithmJob<Hermione>
-
-