类 Impurity

java.lang.Object
weka.classifiers.trees.m5.Impurity
所有已实现的接口:
RevisionHandler

public final class Impurity extends Object implements RevisionHandler
Class for handling the impurity values when spliting the instances
版本:
$Revision: 1.8 $
作者:
Yong Wang (yongwang@cs.waikato.ac.nz)
  • 构造器概要

    构造器
    构造器
    说明
    Impurity(int partition, int attribute, Instances inst, int k)
    Constructs an Impurity object containing the impurity values of partitioning the instances using an attribute
  • 方法概要

    修饰符和类型
    方法
    说明
    Returns the revision string.
    final void
    incremental(double value, int type)
    Incrementally computes the impurirty values
    final String
    Converts an Impurity object to a string

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • Impurity

      public Impurity(int partition, int attribute, Instances inst, int k)
      Constructs an Impurity object containing the impurity values of partitioning the instances using an attribute
      参数:
      partition - the index of the last instance in the left subset
      attribute - the attribute used in partitioning
      inst - instances
      k - the order of the impurity; =1, the variance; =2, the stardard deviation; =k, the k-th order root of the variance
  • 方法详细资料

    • toString

      public final String toString()
      Converts an Impurity object to a string
      覆盖:
      toString 在类中 Object
      返回:
      the converted string
    • incremental

      public final void incremental(double value, int type)
      Incrementally computes the impurirty values
      参数:
      value - the incremental value
      type - if type=1, value will be added to the left subset; type=-1, to the right subset; type=0, initializes
    • getRevision

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