类 PredictionNode

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

public final class PredictionNode extends Object implements Serializable, Cloneable, RevisionHandler
Class representing a prediction node in an alternating tree.
版本:
$Revision: 1.7 $
作者:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • PredictionNode

      public PredictionNode(double newValue)
      Creates a new prediction node.
      参数:
      newValue - the value that the node should store
  • 方法详细资料

    • setValue

      public final void setValue(double newValue)
      Sets the prediction value of the node.
      参数:
      newValue - the value that the node should store
    • getValue

      public final double getValue()
      Gets the prediction value of the node.
      返回:
      the value stored in the node
    • getChildren

      public final FastVector getChildren()
      Gets the children of this node.
      返回:
      a FastVector containing child Splitter object references
    • children

      public final Enumeration children()
      Enumerates the children of this node.
      返回:
      an enumeration of child Splitter object references
    • addChild

      public final void addChild(Splitter newChild, ADTree addingTo)
      Adds a child to this node. If possible will merge, and will perform a deep copy of the child tree.
      参数:
      newChild - the new child to add (will be cloned)
      addingTo - the tree that this node belongs to
    • clone

      public final Object clone()
      Clones this node. Performs a deep copy, recursing through the tree.
      返回:
      a clone
    • merge

      public final void merge(PredictionNode merger, ADTree mergingTo)
      Merges this node with another.
      参数:
      merger - the node that is merging with this node - will not be affected, will instead be cloned
      mergingTo - the tree that this node belongs to
    • getRevision

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