类 ClassifierDecList

java.lang.Object
weka.classifiers.rules.part.ClassifierDecList
所有已实现的接口:
Serializable, RevisionHandler
直接已知子类:
C45PruneableDecList, PruneableDecList

public class ClassifierDecList extends Object implements Serializable, RevisionHandler
Class for handling a rule (partial tree) for a decision list.
版本:
$Revision: 1.13 $
作者:
Eibe Frank (eibe@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • ClassifierDecList

      public ClassifierDecList(ModelSelection toSelectLocModel, int minNum)
      Constructor - just calls constructor of class DecList.
  • 方法详细资料

    • buildRule

      public void buildRule(Instances data) throws Exception
      Method for building a pruned partial tree.
      抛出:
      Exception - if something goes wrong
    • buildDecList

      public void buildDecList(Instances data, boolean leaf) throws Exception
      Builds the partial tree without hold out set.
      抛出:
      Exception - if something goes wrong
    • classifyInstance

      public double classifyInstance(Instance instance) throws Exception
      Classifies an instance.
      抛出:
      Exception - if something goes wrong
    • distributionForInstance

      public final double[] distributionForInstance(Instance instance) throws Exception
      Returns class probabilities for a weighted instance.
      抛出:
      Exception - if something goes wrong
    • weight

      public double weight(Instance instance) throws Exception
      Returns the weight a rule assigns to an instance.
      抛出:
      Exception - if something goes wrong
    • cleanup

      public final void cleanup(Instances justHeaderInfo)
      Cleanup in order to save memory.
    • toString

      public String toString()
      Prints rules.
      覆盖:
      toString 在类中 Object
    • chooseIndex

      public final int chooseIndex()
      Method for choosing a subset to expand.
    • chooseLastIndex

      public final int chooseLastIndex()
      Choose last index (ie. choose rule).
    • getRevision

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