Class BestBinnedNumericClassRandomSplitGenerator

    • Field Detail

      • m_Percentage

        protected double m_Percentage
        the percentage.
      • m_PreserveOrder

        protected boolean m_PreserveOrder
        whether to preserve the order.
      • m_Algorithms

        protected BinningAlgorithm[] m_Algorithms
        the algorithms to evaluate.
      • m_NumEvaluationBins

        protected int m_NumEvaluationBins
        the number of evaluation bins.
      • m_Generated

        protected boolean m_Generated
        whether the split was generated.
      • m_Manual

        protected ManualBinning m_Manual
        for generating class distributions.
    • Constructor Detail

      • BestBinnedNumericClassRandomSplitGenerator

        public BestBinnedNumericClassRandomSplitGenerator()
    • Method Detail

      • percentageTipText

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

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

        public void setAlgorithms​(BinningAlgorithm[] value)
        Sets the binning algorithms to choose from.
        Parameters:
        value - the algorithms
      • getAlgorithms

        public BinningAlgorithm[] getAlgorithms()
        Returns the binning algorithms to choose from.
        Returns:
        the algorithms
      • algorithmsTipText

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

        public void setNumEvaluationBins​(int value)
        Sets the number of bints to use during evaluation.
        Parameters:
        value - the number of bins
      • getNumEvaluationBins

        public int getNumEvaluationBins()
        Returns the number of bins to use during evaluation.
        Returns:
        the number of bins
      • numEvaluationBinsTipText

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

        protected boolean canRandomize()
        Returns whether randomization is enabled.
        Specified by:
        canRandomize in class AbstractSplitGenerator
        Returns:
        true if to randomize
      • checkNext

        protected boolean checkNext()
        Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
        Specified by:
        checkNext in class AbstractSplitGenerator
        Returns:
        true if the iterator has more elements.
      • calcDistribution

        protected double[] calcDistribution​(List<Binnable<weka.core.Instance>> binnable,
                                            double emptyBinValue)
        Calculates the class distribution.
        Parameters:
        binnable - the instances to calculate the distribution for
        emptyBinValue - the value to use for empty bins
        Returns:
        the distribution