Package adams.flow.transformer
Class Evaluator.EvaluateJob
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.multiprocess.AbstractJob
-
- adams.flow.transformer.Evaluator.EvaluateJob
-
- 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:
- Evaluator
public static class Evaluator.EvaluateJob extends adams.multiprocess.AbstractJob- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.core.Instancesm_Datathe data to use for training.protected AbstractEvaluatorm_Evaluatorthe evaluator to train.
-
Constructor Summary
Constructors Constructor Description EvaluateJob(AbstractEvaluator evaluator, weka.core.Instances data)Initializes the job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Cleans up data structures, frees up memory.protected StringpostProcessCheck()Checks whether all post-conditions have been met.protected StringpreProcessCheck()Checks whether all pre-conditions have been met.protected voidprocess()Does the actual execution of the job.voidstopExecution()Stops the execution.StringtoString()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.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Evaluator
protected AbstractEvaluator m_Evaluator
the evaluator to train.
-
m_Data
protected weka.core.Instances m_Data
the data to use for training.
-
-
Constructor Detail
-
EvaluateJob
public EvaluateJob(AbstractEvaluator evaluator, weka.core.Instances data)
Initializes the job.- Parameters:
evaluator- the evaluator to traindata- the training data
-
-
Method Detail
-
preProcessCheck
protected String preProcessCheck()
Checks whether all pre-conditions have been met.- Specified by:
preProcessCheckin classadams.multiprocess.AbstractJob- Returns:
- null if everything is OK, otherwise an error message
-
process
protected void process() throws ExceptionDoes the actual execution of the job.- Specified by:
processin classadams.multiprocess.AbstractJob- Throws:
Exception- if fails to execute job
-
stopExecution
public void stopExecution()
Stops the execution.- Specified by:
stopExecutionin interfaceadams.core.Stoppable- Overrides:
stopExecutionin classadams.multiprocess.AbstractJob
-
postProcessCheck
protected String postProcessCheck()
Checks whether all post-conditions have been met.- Specified by:
postProcessCheckin classadams.multiprocess.AbstractJob- Returns:
- null if everything is OK, otherwise an error message
-
toString
public String toString()
Returns a string representation of this job.- Specified by:
toStringin classadams.multiprocess.AbstractJob- Returns:
- the job as string
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory. Removes dependencies and job parameters.- Specified by:
cleanUpin interfaceadams.core.CleanUpHandler- Specified by:
cleanUpin interfaceadams.multiprocess.Job- Overrides:
cleanUpin classadams.multiprocess.AbstractJob
-
-