org.apache.spark.streamdm.classifiers.trees

LearningNodeNB

class LearningNodeNB extends ActiveLearningNode with Serializable

Naive Bayes based learning node.

Linear Supertypes
ActiveLearningNode, LearningNode, Node, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LearningNodeNB
  2. ActiveLearningNode
  3. LearningNode
  4. Node
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LearningNodeNB(that: LearningNodeNB)

  2. new LearningNodeNB(classDistribution: Array[Double], instanceSpecification: InstanceSpecification)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addOnWeight(): Double

    Definition Classes
    ActiveLearningNode
  7. var addonWeight: Double

    Definition Classes
    ActiveLearningNode
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. var blockAddonWeight: Double

    Definition Classes
    ActiveLearningNode
  10. val blockClassDistribution: Array[Double]

    Definition Classes
    Node
  11. def blockWeight(): Double

    Definition Classes
    ActiveLearningNode
  12. def classVotes(ht: HoeffdingTreeModel, example: Example): Array[Double]

    Returns the predicted class distribution

    Returns the predicted class distribution

    ht

    a Hoeffding tree model

    example

    the Example to be evaluated

    returns

    the predicted class distribution

    Definition Classes
    LearningNodeNBNode
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. var dep: Int

    Definition Classes
    Node
  15. def depth(): Int

    Returns depth of current node in the tree

    Returns depth of current node in the tree

    returns

    the depth

    Definition Classes
    Node
  16. def description(): String

    Returns the node description

    Returns the node description

    returns

    String containing the description

    Definition Classes
    Node
  17. def disableFeature(fIndex: Int): Unit

    Disable a feature having an index

    Disable a feature having an index

    fIndex

    the index of the feature

    Definition Classes
    LearningNodeNBActiveLearningNode
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. var featureObservers: Array[FeatureClassObserver]

    Definition Classes
    ActiveLearningNode
  21. def filterToLeaf(example: Example, parent: SplitNode, index: Int): FoundNode

    Filter the data to the related leaf node

    Filter the data to the related leaf node

    example

    the input example

    parent

    the parent of current node

    index

    the index of current node in the parent children

    returns

    FoundNode containing the leaf node

    Definition Classes
    LearningNodeNode
  22. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def getBestSplitSuggestions(splitCriterion: SplitCriterion, ht: HoeffdingTreeModel): Array[FeatureSplit]

    Returns Split suggestions for all features.

    Returns Split suggestions for all features.

    splitCriterion

    the SplitCriterion used

    ht

    a Hoeffding tree model

    returns

    an array of FeatureSplit

    Definition Classes
    ActiveLearningNode
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def height(): Int

    Returns height of the tree

    Returns height of the tree

    returns

    the height

    Definition Classes
    Node
  27. def init(): Unit

    init featureObservers array

    init featureObservers array

    Definition Classes
    ActiveLearningNode
  28. def isActive(): Boolean

    Returns whether a node is active.

    Returns whether a node is active.

    Definition Classes
    ActiveLearningNodeLearningNode
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def isLeaf(): Boolean

    Checks whether a node is a leaf

    Checks whether a node is a leaf

    returns

    true if a node is a leaf, false otherwise

    Definition Classes
    Node
  31. def isPure(): Boolean

    Returns whether a node is pure, which means it only has examples belonging to a single class.

    Returns whether a node is pure, which means it only has examples belonging to a single class.

    Definition Classes
    ActiveLearningNode
  32. def learn(ht: HoeffdingTreeModel, example: Example): Unit

    Learn and update the node

    Learn and update the node

    ht

    a Hoeffding tree model

    example

    the input example

    Definition Classes
    ActiveLearningNodeLearningNode
  33. def merge(that: Node, trySplit: Boolean): Node

    Merge two nodes

    Merge two nodes

    trySplit

    flag indicating whether the node will be split

    returns

    new node

    Definition Classes
    ActiveLearningNodeNode
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. def numChildren(): Int

    Returns number of children

    Returns number of children

    returns

    number of children

    Definition Classes
    Node
  38. def setDepth(depth: Int): Unit

    Set the depth of current node

    Set the depth of current node

    depth

    the new depth

    Definition Classes
    Node
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    ActiveLearningNode → AnyRef → Any
  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def weight(): Double

    Definition Classes
    ActiveLearningNode

Inherited from ActiveLearningNode

Inherited from LearningNode

Inherited from Node

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped