Packages

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

    The analytics package contains classes, traits and objects for analytics including clustering and prediction.

    The analytics package contains classes, traits and objects for analytics including clustering and prediction.

    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
  • class DecisionTreeC45 extends ClassifierInt

    The DecisionTreeC45 class implements a Decision Tree classifier using the C4.5 algorithm.

    The DecisionTreeC45 class implements a Decision Tree classifier using the C4.5 algorithm. The classifier is trained using a data matrix 'x' and a classification vector 'y'. Each data vector in the matrix is classified into one of 'k' classes numbered '0, ..., k-1'. Each column in the matrix represents a feature (e.g., Humidity). The 'vc' array gives the number of distinct values per feature (e.g., 2 for Humidity).

    Definition Classes
    classifier
  • Node

class Node extends AnyRef

Class that contains information for a tree node.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Node
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Node(f: Int, value: Int, threshold: Double = 1, leaf: Boolean = false, decision: Int = 1)

    f

    feature of the node, if it is leaf, contains the feature of its parent

    value

    branch value

    leaf

    Boolean value indicate whether is leaf node

    decision

    decision if it is leaf node

Value Members

  1. val decision: Int
  2. val f: Int
  3. val leaf: Boolean
  4. var next: MutableList[Node]
  5. val threshold: Double
  6. def toString(): String
    Definition Classes
    Node → AnyRef → Any
  7. var value: Int