All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Interface weka.classifiers.trees.m5.SplitEvaluate


public interface SplitEvaluate
Interface for objects that determine a split point on an attribute

Version:
$Revision: 1.1 $
Author:
Mark Hall (mhall@cs.waikato.ac.nz)

Method Index

 o attrSplit(int, Instances)
Finds the best splitting point for an attribute in the instances
 o copy()
makes a copy of the SplitEvaluate object
 o maxImpurity()
Returns the impurity of this split
 o position()
Returns the position of the split in the sorted values.
 o splitAttr()
Returns the attribute used in this split
 o splitValue()
Returns the split value

Method Detail

 o copy
public SplitEvaluate copy() throws java.lang.Exception
          makes a copy of the SplitEvaluate object
Returns:
a copy of the object
 o attrSplit
public void attrSplit(int attr,
                      Instances inst) throws java.lang.Exception
          Finds the best splitting point for an attribute in the instances
Parameters:
attr - the splitting attribute
inst - the instances
Throws:
java.lang.Exception - if something goes wrong
 o maxImpurity
public double maxImpurity()
          Returns the impurity of this split
Returns:
the impurity of this split
 o position
public int position()
          Returns the position of the split in the sorted values. -1 indicates that a split could not be found.
Returns:
an int value
 o splitAttr
public int splitAttr()
          Returns the attribute used in this split
Returns:
the attribute used in this split
 o splitValue
public double splitValue()
          Returns the split value
Returns:
the split value

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home