Class

ml.combust.mleap.core.tree

CategoricalSplit

Related Doc: package tree

Permalink

final case class CategoricalSplit(featureIndex: Int, numCategories: Int, categories: Array[Double], isLeft: Boolean) extends Split with Product with Serializable

Class for splitting on a categorical feature.

featureIndex

index of the features

numCategories

number of potential categories

categories

array of categories

isLeft

if this split goes left

Annotations
@SparkCode()
Linear Supertypes
Product, Equals, Split, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CategoricalSplit
  2. Product
  3. Equals
  4. Split
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CategoricalSplit(featureIndex: Int, numCategories: Int, categories: Array[Double], isLeft: Boolean)

    Permalink

    featureIndex

    index of the features

    numCategories

    number of potential categories

    categories

    array of categories

    isLeft

    if this split goes left

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. val categories: Array[Double]

    Permalink

    array of categories

  6. def clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  8. val featureIndex: Int

    Permalink

    index of the features

    index of the features

    Definition Classes
    CategoricalSplitSplit
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  12. val isLeft: Boolean

    Permalink

    if this split goes left

  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. val numCategories: Int

    Permalink

    number of potential categories

  17. def shouldGoLeft(binnedFeature: Int, splits: Array[Split]): Boolean

    Permalink

    Whether to go left or not.

    Whether to go left or not.

    Utilized binned features as an optimization.

    binnedFeature

    binned features

    splits

    array of splits

    returns

    true if binned features for left, false otherwise

    Definition Classes
    CategoricalSplitSplit
  18. def shouldGoLeft(features: Vector): Boolean

    Permalink

    Whether to go left or not.

    Whether to go left or not.

    features

    features for split

    returns

    true if features go left, false otherwise

    Definition Classes
    CategoricalSplitSplit
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. final def wait(): Unit

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

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

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

Inherited from Product

Inherited from Equals

Inherited from Split

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped