Package adams.flow.transformer
Class WekaTestSetEvaluator.EvaluateJob
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.multiprocess.AbstractJob
-
- adams.flow.transformer.WekaTestSetEvaluator.EvaluateJob
-
- All Implemented Interfaces:
CleanUpHandler
,LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,Job
,Serializable
- Enclosing class:
- WekaTestSetEvaluator
public static class WekaTestSetEvaluator.EvaluateJob extends AbstractJob
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.classifiers.Classifier
m_Classifier
the classifier to evaluate.protected StoppableEvaluation
m_Evaluation
the evaluation object to use.protected weka.classifiers.evaluation.output.prediction.AbstractOutput
m_Output
the output to use.protected weka.core.Instances
m_Test
the data to use for testing.-
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 EvaluateJob(StoppableEvaluation evaluation, weka.classifiers.Classifier classifier, weka.core.Instances test, weka.classifiers.evaluation.output.prediction.AbstractOutput output)
Initializes the job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Cleans up data structures, frees up memory.protected String
postProcessCheck()
Checks whether all post-conditions have been met.protected String
preProcessCheck()
Checks whether all pre-conditions have been met.protected void
process()
Does the actual execution of the job.void
stopExecution()
Stops the execution.String
toString()
Returns a string representation of this job.-
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.CustomLoggingLevelObject
setLoggingLevel
-
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
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
-
-
-
Field Detail
-
m_Evaluation
protected StoppableEvaluation m_Evaluation
the evaluation object to use.
-
m_Classifier
protected weka.classifiers.Classifier m_Classifier
the classifier to evaluate.
-
m_Test
protected weka.core.Instances m_Test
the data to use for testing.
-
m_Output
protected weka.classifiers.evaluation.output.prediction.AbstractOutput m_Output
the output to use.
-
-
Constructor Detail
-
EvaluateJob
public EvaluateJob(StoppableEvaluation evaluation, weka.classifiers.Classifier classifier, weka.core.Instances test, weka.classifiers.evaluation.output.prediction.AbstractOutput output)
Initializes the job.- Parameters:
evaluation
- the evaluation object to useclassifier
- the classifier to evaluatetest
- the test dataoutput
- the output to use
-
-
Method Detail
-
preProcessCheck
protected String preProcessCheck()
Checks whether all pre-conditions have been met.- Specified by:
preProcessCheck
in classAbstractJob
- Returns:
- null if everything is OK, otherwise an error message
-
process
protected void process() throws Exception
Does the actual execution of the job.- Specified by:
process
in classAbstractJob
- Throws:
Exception
- if fails to execute job
-
stopExecution
public void stopExecution()
Stops the execution.- Specified by:
stopExecution
in interfaceStoppable
- Overrides:
stopExecution
in classAbstractJob
-
postProcessCheck
protected String postProcessCheck()
Checks whether all post-conditions have been met.- Specified by:
postProcessCheck
in classAbstractJob
- Returns:
- null if everything is OK, otherwise an error message
-
toString
public String toString()
Returns a string representation of this job.- Specified by:
toString
in classAbstractJob
- Returns:
- the job as string
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory. Removes dependencies and job parameters.- Specified by:
cleanUp
in interfaceCleanUpHandler
- Specified by:
cleanUp
in interfaceJob
- Overrides:
cleanUp
in classAbstractJob
-
-