Class/Object

au.csiro.variantspark.algo

DecisionTree

Related Docs: object DecisionTree | package algo

Permalink

class DecisionTree[V] extends Logging with Prof

Class for the Decision tree model

Specify the 'params' using the au.csiro.variantspark.algo.DecisionTreeParams

val maxDepth = 5
val minNodeSize = 10
val seed = 1
val randomizeEquality = false

val params = DecisionTreeParams(maxDepth, minNodeSize, seed, randomizeEquality)
val model = DecisionTree(params)
Linear Supertypes
Prof, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DecisionTree
  2. Prof
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DecisionTree(params: DecisionTreeParams = DecisionTreeParams())(implicit canSplit: CanSplit[V])

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def batchTrain(indexedData: RDD[(V, Long)], dataType: VariableType, labels: Array[Int], nvarFraction: Double, sample: Seq[Sample]): Seq[DecisionTreeModel[V]]

    Permalink

    Trains all the trees for specified samples at the same time

    Trains all the trees for specified samples at the same time

    returns

    Returns a Sequence of au.csiro.variantspark.algo.DecisionTreeModel classes containing the dataset

  6. def buildSplit(indexedData: RDD[(V, Long)], subsets: List[SubsetInfo], br_splitter: Broadcast[VariableSplitter[V]], treeLevel: Int): List[DecisionTreeNode]

    Permalink

    Builds (recursively) the decision tree level by level

    Builds (recursively) the decision tree level by level

    returns

    Returns a subset of the splits

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def findBestSplitsAndSubsets(indexedData: RDD[(V, Long)], subsetsToSplit: List[SubsetInfo], br_splitter: Broadcast[VariableSplitter[V]]): (Array[VarSplitInfo], List[SubsetInfo])

    Permalink

    Finds the best split using the au.csiro.variantspark.algo.DecisionTree class's findBestSplits function then broadcast to the bestSplits variable

  12. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  16. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  17. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  20. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  21. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. val params: DecisionTreeParams

    Permalink
  32. var prevStartTime: Long

    Permalink
    Definition Classes
    Prof
  33. lazy val profEnable: Boolean

    Permalink
    Definition Classes
    Prof
  34. def profIt[R](msg: ⇒ String)(f: ⇒ R): R

    Permalink
    Definition Classes
    Prof
  35. def profPoint(msg: ⇒ String): Unit

    Permalink
    Definition Classes
    Prof
  36. def profReset(): Unit

    Permalink
    Definition Classes
    Prof
  37. implicit lazy val rnd: XorShift1024StarRandomGenerator

    Permalink
  38. def run(indexedData: RDD[(V, Long)], dataType: VariableType, labels: Array[Int], nvarFraction: Double, sample: Sample): DecisionTreeModel[V]

    Permalink

    Alternative run function

  39. def run(data: RDD[V], dataType: VariableType, labels: Array[Int]): DecisionTreeModel[V]

    Permalink

    Basic run operation taking the in the data, the type, and the labels

  40. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Prof

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped