Class DatasetCleaner

  • All Implemented Interfaces:
    Serializable, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.CommandlineRunnable, weka.core.OptionHandler, weka.core.RevisionHandler

    public class DatasetCleaner
    extends AbstractRowFinderApplier
    Removes all rows from the data data that have been indentified.

    Valid options are:

      Turns on output of debugging information.
     -W <row finder specification>
      Full class name of row finder to use, followed
      by scheme options. eg:
       " -D 1"
      Whether to invert the found row indices.
      (default: off)
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • DatasetCleaner

        public DatasetCleaner()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing this classifier.
        Specified by:
        globalInfo in class weka.filters.SimpleFilter
        a description of the classifier suitable for displaying in the explorer/experimenter gui
      • rowFinderTipText

        public String rowFinderTipText()
        Returns the tip text for this property.
        Specified by:
        rowFinderTipText in class AbstractRowFinderApplier
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • determineOutputFormat

        protected weka.core.Instances determineOutputFormat​(weka.core.Instances inputFormat)
                                                     throws Exception
        Determines the output format based on the input format and returns this. In case the output format cannot be returned immediately, i.e., immediateOutputFormat() returns false, then this method will be called from batchFinished().
        Specified by:
        determineOutputFormat in class AbstractRowFinderApplier
        inputFormat - the input format to base the output format on
        the output format
        Exception - in case the determination goes wrong
      • apply

        protected weka.core.Instances apply​(weka.core.Instances data,
                                            int[] indices)
        Applies the indices to the data. In case inverting is enabled, the indices have already been inverted.
        Specified by:
        apply in class AbstractRowFinderApplier
        data - the data to process
        indices - the indices to use
        the processed data
      • getRevision

        public String getRevision()
        Returns the revision string.
        Specified by:
        getRevision in interface weka.core.RevisionHandler
        getRevision in class weka.filters.Filter
        the revision