Packages

  • package root
    Definition Classes
    root
  • package scalation
    Definition Classes
    root
  • package analytics

    The analytics package contains classes, traits and objects for analytics.

    The analytics package contains classes, traits and objects for analytics.

    Definition Classes
    scalation
  • package classifier

    The analytics package contains classes, traits and objects for analytics focused on classification.

    The analytics package contains classes, traits and objects for analytics focused on classification.

    Definition Classes
    analytics
  • object DecisionTreeTest extends App

    The DecisionTreeTest is used to test the DecisionTree class.

    The DecisionTreeTest is used to test the DecisionTree class. > runMain scalation.analytics.classifier.DecisionTreeTest

    Definition Classes
    classifier
  • Tree

object Tree extends DecisionTree

Linear Supertypes
DecisionTree, Error, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tree
  2. DecisionTree
  3. Error
  4. AnyRef
  5. 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

    Definition Classes
    DecisionTree
  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

    Definition Classes
    DecisionTree
  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

    Definition Classes
    DecisionTree
  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

    Definition Classes
    DecisionTree
  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

    Definition Classes
    DecisionTree
  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

    Definition Classes
    DecisionTree
  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)

    Definition Classes
    DecisionTree
  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.

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

    Definition Classes
    DecisionTree
  23. def reset(): Unit

    Reset or re-initialize counters, if needed.

    Reset or re-initialize counters, if needed.

    Definition Classes
    DecisionTree
  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 DecisionTree

Inherited from Error

Inherited from AnyRef

Inherited from Any

Ungrouped