Class AbstractDatasetInstanceEvaluator

    • Field Detail

      • m_Data

        protected weka.core.Instances m_Data
        the data set to use for training and other bits.
      • m_Threshold

        protected double m_Threshold
        the percentage to the threshold.
    • Constructor Detail

      • AbstractDatasetInstanceEvaluator

        public AbstractDatasetInstanceEvaluator()
    • Method Detail

      • setData

        public void setData​(weka.core.Instances value)
        Sets the data set to use for training and so forth.
        Parameters:
        value - the data set
      • getData

        public weka.core.Instances getData()
        Returns the data to use for training and so forth.
        Returns:
        the data set, can be null if not yet set
      • setThreshold

        public void setThreshold​(double value)
        Sets the threshold.
        Parameters:
        value - the threshold (0-1)
      • getThreshold

        public double getThreshold()
        Returns the threshold.
        Returns:
        the threshold (0-1)
      • thresholdTipText

        public String thresholdTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • split

        protected weka.core.Instances[] split​(weka.core.Instances data,
                                              double percentage)
        Splits the dataset into two separate ones, according to the specified percentage (0-1).
        Parameters:
        data - the data to split
        percentage - the percentage of the split (0-1)
        Returns:
        the array with the two datasets generated
      • findThreshold

        protected abstract String findThreshold()
        Finds the user-defined threshold and sets other internal variables accordingly.
        Returns:
        null if everything OK, error message otherwise
      • setUp

        protected String setUp()
        Performs necessary initializations before being able to evaluate.
        Overrides:
        setUp in class AbstractInstanceEvaluator
        Returns:
        null if everything fine, error message otherwise