ml.combust.mleap.core.tree

CategoricalSplit

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val categories: Array[Double]

    array of categories

  8. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  10. val featureIndex: Int

    index of the features

    index of the features

    Definition Classes
    CategoricalSplitSplit
  11. def finalize(): Unit

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

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

    Definition Classes
    Any
  14. val isLeft: Boolean

    if this split goes left

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

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. val numCategories: Int

    number of potential categories

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

    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
  20. def shouldGoLeft(features: Vector): Boolean

    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
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. final def wait(): Unit

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

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

    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