Class WekaTrainTestSetEvaluator.EvaluateJob

    • Field Detail

      • m_Classifier

        protected weka.classifiers.Classifier m_Classifier
        the classifier to train.
      • m_Train

        protected weka.core.Instances m_Train
        the data to use for training.
      • m_Test

        protected weka.core.Instances m_Test
        the data to use for testing.
      • m_Evaluation

        protected weka.classifiers.Evaluation m_Evaluation
        the evaluation object to use.
      • m_Output

        protected weka.classifiers.evaluation.output.prediction.AbstractOutput m_Output
        for collecting the output.
    • Constructor Detail

      • EvaluateJob

        public EvaluateJob​(weka.classifiers.Classifier classifier,
                           weka.core.Instances train,
                           weka.core.Instances test,
                           weka.classifiers.Evaluation eval,
                           weka.classifiers.evaluation.output.prediction.AbstractOutput output)
        Initializes the job.
        classifier - the classifier to train
        train - the training data
        test - the test data
        eval - the evaluation object to use
        output - for collecting the output
    • Method Detail

      • preProcessCheck

        protected String preProcessCheck()
        Checks whether all pre-conditions have been met.
        Specified by:
        preProcessCheck in class AbstractJob
        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 class AbstractJob
        Exception - if fails to execute job
      • postProcessCheck

        protected String postProcessCheck()
        Checks whether all post-conditions have been met.
        Specified by:
        postProcessCheck in class AbstractJob
        null if everything is OK, otherwise an error message
      • toString

        public String toString()
        Returns a string representation of this job.
        Specified by:
        toString in class AbstractJob
        the job as string
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory. Removes dependencies and job parameters.
        Specified by:
        cleanUp in interface CleanUpHandler
        Specified by:
        cleanUp in interface Job
        cleanUp in class AbstractJob