类 YongSplitInfo

java.lang.Object
weka.classifiers.trees.m5.YongSplitInfo
所有已实现的接口:
Serializable, Cloneable, SplitEvaluate, RevisionHandler

public final class YongSplitInfo extends Object implements Cloneable, Serializable, SplitEvaluate, RevisionHandler
Stores split information.
版本:
$Revision: 1.4 $
作者:
Yong Wang (yongwang@cs.waikato.ac.nz), Mark Hall (mhall@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • YongSplitInfo

      public YongSplitInfo(int low, int high, int attr)
      Constructs an object which contains the split information
      参数:
      low - the index of the first instance
      high - the index of the last instance
      attr - an attribute
  • 方法详细资料

    • copy

      public final SplitEvaluate copy() throws Exception
      Makes a copy of this SplitInfo object
      指定者:
      copy 在接口中 SplitEvaluate
      返回:
      a copy of the object
      抛出:
      Exception
    • initialize

      public final void initialize(int low, int high, int attr)
      Resets the object of split information
      参数:
      low - the index of the first instance
      high - the index of the last instance
      attr - the attribute
    • toString

      public final String toString(Instances inst)
      Converts the spliting information to string
      参数:
      inst - the instances
    • attrSplit

      public final void attrSplit(int attr, Instances inst) throws Exception
      Finds the best splitting point for an attribute in the instances
      指定者:
      attrSplit 在接口中 SplitEvaluate
      参数:
      attr - the splitting attribute
      inst - the instances
      抛出:
      Exception - if something goes wrong
    • maxImpurity

      public double maxImpurity()
      Returns the impurity of this split
      指定者:
      maxImpurity 在接口中 SplitEvaluate
      返回:
      the impurity of this split
    • splitAttr

      public int splitAttr()
      Returns the attribute used in this split
      指定者:
      splitAttr 在接口中 SplitEvaluate
      返回:
      the attribute used in this split
    • position

      public int position()
      Returns the position of the split in the sorted values. -1 indicates that a split could not be found.
      指定者:
      position 在接口中 SplitEvaluate
      返回:
      an int value
    • splitValue

      public double splitValue()
      Returns the split value
      指定者:
      splitValue 在接口中 SplitEvaluate
      返回:
      the split value
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision