Class CrossValidationExperiment.CrossValidationExperimentJob
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.multiprocess.AbstractJob
-
- adams.gui.tools.wekamultiexperimenter.experiment.AbstractExperiment.AbstractExperimentJob<CrossValidationExperiment>
-
- adams.gui.tools.wekamultiexperimenter.experiment.CrossValidationExperiment.CrossValidationExperimentJob
-
- 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
,Serializable
- Enclosing class:
- CrossValidationExperiment
public static class CrossValidationExperiment.CrossValidationExperimentJob extends AbstractExperiment.AbstractExperimentJob<CrossValidationExperiment>
Performs cross-validation on the classifier/data combination.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected WekaCrossValidationExecution
m_CrossValidation
for executing the cross-validation.-
Fields inherited from class adams.gui.tools.wekamultiexperimenter.experiment.AbstractExperiment.AbstractExperimentJob
m_Classifier, m_ClassLabelIndex, m_Data, m_Owner, m_Results, m_Run
-
-
Constructor Summary
Constructors Constructor Description CrossValidationExperimentJob(CrossValidationExperiment owner, int run, weka.classifiers.Classifier classifier, weka.core.Instances data)
Initializes the run.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Cleans up data structures, frees up memory.protected void
evaluate()
Performs the cross-validation.void
stopExecution()
Stops the execution.-
Methods inherited from class adams.gui.tools.wekamultiexperimenter.experiment.AbstractExperiment.AbstractExperimentJob
addMetric, addMetrics, postProcessCheck, preProcessCheck, process, toString
-
Methods inherited from class adams.multiprocess.AbstractJob
execute, getAdditionalErrorInformation, getExecutionError, getJobCompleteListener, getJobInfo, getProgressInfo, hasExecutionError, isComplete, isStopped, jobCompleted, setJobCompleteListener, setJobInfo, setProgressInfo
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_CrossValidation
protected WekaCrossValidationExecution m_CrossValidation
for executing the cross-validation.
-
-
Constructor Detail
-
CrossValidationExperimentJob
public CrossValidationExperimentJob(CrossValidationExperiment owner, int run, weka.classifiers.Classifier classifier, weka.core.Instances data)
Initializes the run.- Parameters:
owner
- the owning experimentrun
- the current runclassifier
- the classifier to evaluatedata
- the data to use for evaluation
-
-
Method Detail
-
evaluate
protected void evaluate()
Performs the cross-validation.- Specified by:
evaluate
in classAbstractExperiment.AbstractExperimentJob<CrossValidationExperiment>
-
stopExecution
public void stopExecution()
Stops the execution.- Specified by:
stopExecution
in interfaceadams.core.Stoppable
- Overrides:
stopExecution
in classadams.multiprocess.AbstractJob
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory. Removes dependencies and job parameters.- Specified by:
cleanUp
in interfaceadams.core.CleanUpHandler
- Specified by:
cleanUp
in interfaceadams.multiprocess.Job
- Overrides:
cleanUp
in classadams.multiprocess.AbstractJob
-
-