Packages

trait DecisionTree extends Error

The DecisionTree trait provides common capabilities for all types of decision trees.

Linear Supertypes
Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DecisionTree
  2. Error
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(n: Node, vc: (Int, Node)*): Unit

    Add multiple child nodes to the tree via branchs from node 'n'.

    Add multiple child nodes to the tree via branchs from node 'n'.

    n

    the parent node

    vc

    the branch value and child node, repeatable

  5. def add(n: Node, v: Int, c: Node): Unit

    Add child node 'c' to the tree via branch 'v' from node 'n'.

    Add child node 'c' to the tree via branch 'v' from node 'n'.

    n

    the parent node

    v

    the branch value from the parent node

    c

    the child node

  6. def addRoot(r: Node): Unit

    Add the root node to the tree.

    Add the root node to the tree.

    r

    the root node of the tree

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def calcEntropy(nodes: ArrayBuffer[Node] = leaves): Double

    Calculate the entropy of the tree as the weighted average over the list of nodes (defualts to leaves).

    Calculate the entropy of the tree as the weighted average over the list of nodes (defualts to leaves).

    nodes

    the nodes to compute the weighted entropy over

  9. def classify2(z: VectoD): Int

    Given a data vector z, classify it returning the class number (0, ..., k-1) by following a decision path from the root to a leaf.

    Given a data vector z, classify it returning the class number (0, ..., k-1) by following a decision path from the root to a leaf. If no branch found, give maximal decision of current node. Return the best class and its name.

    z

    the data vector to classify

  10. def classify2(z: VectoI): Int

    Given a data vector z, classify it returning the class number (0, ..., k-1) by following a decision path from the root to a leaf.

    Given a data vector z, classify it returning the class number (0, ..., k-1) by following a decision path from the root to a leaf. If no branch found, give maximal decision of current node. Return the best class and its name.

    z

    the data vector to classify

  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def flaw(method: String, message: String): Unit
    Definition Classes
    Error
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def makeLeaf(n: Node): Unit

    As part of tree pruning, turn an internal node into a leaf.

    As part of tree pruning, turn an internal node into a leaf.

    n

    the node to turn into a leaf (pruning all nodes below it)

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def printTree(): Unit

    Print the decision tree using 'prinT' method from Node class.

  23. def reset(): Unit

    Reset or re-initialize counters, if needed.

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped