Package weka.classifiers.trees.ht
Class SplitCandidate
java.lang.Object
weka.classifiers.trees.ht.SplitCandidate
- All Implemented Interfaces:
Comparable<SplitCandidate>
Encapsulates a candidate split
- Version:
- $Revision: 9705 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
Field Summary
Modifier and TypeFieldDescriptionlist of class distributions resulting from a split - 2 entries in the outer list for numeric splits and n for nominal splitsdouble
The merit of the split -
Constructor Summary
ConstructorDescriptionSplitCandidate
(Split splitTest, List<Map<String, WeightMass>> postSplitDists, double merit) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(SplitCandidate comp) int
Number of branches resulting from the split
-
Field Details
-
m_splitTest
-
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_splitMeritThe merit of the split
-
-
Constructor Details
-
SplitCandidate
Constructor- Parameters:
splitTest
- the splitting testpostSplitDists
- the distributions resulting from the splitmerit
- the merit of the split
-
-
Method Details
-
numSplits
public int numSplits()Number of branches resulting from the split- Returns:
- the number of subsets of instances resulting from the split
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SplitCandidate>
-