Class SplitCandidate

  • All Implemented Interfaces:
    Comparable<SplitCandidate>

    public class SplitCandidate
    extends Object
    implements Comparable<SplitCandidate>
    Encapsulates a candidate split
    Version:
    $Revision$
    Author:
    Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
    • Field Detail

      • m_splitTest

        public Split m_splitTest
      • m_postSplitClassDistributions

        public List<Map<String,​WeightMass>> m_postSplitClassDistributions
        list of class distributions resulting from a split - 2 entries in the outer list for numeric splits and n for nominal splits
      • m_splitMerit

        public double m_splitMerit
        The merit of the split
    • Constructor Detail

      • SplitCandidate

        public SplitCandidate​(Split splitTest,
                              List<Map<String,​WeightMass>> postSplitDists,
                              double merit)
        Constructor
        Parameters:
        splitTest - the splitting test
        postSplitDists - the distributions resulting from the split
        merit - the merit of the split
    • Method Detail

      • numSplits

        public int numSplits()
        Number of branches resulting from the split
        Returns:
        the number of subsets of instances resulting from the split