Class Split

java.lang.Object
weka.classifiers.trees.ht.Split
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnivariateNominalMultiwaySplit, UnivariateNumericBinarySplit

public abstract class Split extends Object implements Serializable
Base class for different split types
Version:
$Revision: 10531 $
Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • Split

      public Split()
  • Method Details

    • branchForInstance

      public abstract String branchForInstance(Instance inst)
      Returns the name of the branch that the supplied instance would go down
      Parameters:
      inst - the instance to find the branch for
      Returns:
      the name of the branch that the instance would go down
    • conditionForBranch

      public abstract String conditionForBranch(String branch)
      Returns the condition for the supplied branch name
      Parameters:
      branch - the name of the branch to get the condition for
      Returns:
      the condition (test) that corresponds to the named branch
    • splitAttributes

      public List<String> splitAttributes()