Package weka.classifiers.trees.m5
Interface SplitEvaluate
- All Known Implementing Classes:
- CorrelationSplitInfo,- YongSplitInfo
public interface SplitEvaluate
Interface for objects that determine a split point on an attribute
- Version:
- $Revision: 8034 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- 
Method SummaryModifier and TypeMethodDescriptionvoidFinds the best splitting point for an attribute in the instancescopy()makes a copy of the SplitEvaluate objectdoubleReturns the impurity of this splitintposition()Returns the position of the split in the sorted values.intReturns the attribute used in this splitdoubleReturns the split value
- 
Method Details- 
copymakes a copy of the SplitEvaluate object- Returns:
- a copy of the object
- Throws:
- Exception
 
- 
attrSplitFinds the best splitting point for an attribute in the instances- Parameters:
- attr- the splitting attribute
- inst- the instances
- Throws:
- Exception- if something goes wrong
 
- 
maxImpuritydouble maxImpurity()Returns the impurity of this split- Returns:
- the impurity of this split
 
- 
positionint position()Returns the position of the split in the sorted values. -1 indicates that a split could not be found.- Returns:
- an intvalue
 
- 
splitAttrint splitAttr()Returns the attribute used in this split- Returns:
- the attribute used in this split
 
- 
splitValuedouble splitValue()Returns the split value- Returns:
- the split value
 
 
-