Class WekaFilter.BatchFilterJob

    • Field Detail

      • m_Filter

        protected weka.filters.Filter m_Filter
        the filter to use.
      • m_Data

        protected weka.core.Instances m_Data
        the data to use for training.
      • m_FilteredData

        protected weka.core.Instances m_FilteredData
        the filtered data.
    • Constructor Detail

      • BatchFilterJob

        public BatchFilterJob​(weka.filters.Filter filter,
                              weka.core.Instances data)
        Initializes the job.
        filter - the filter to use
        data - the training data
    • Method Detail

      • getFilteredData

        public weka.core.Instances getFilteredData()
        Returns the filtered data.
        the data, null if not available
      • 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