Class Split

Object
org.apache.spark.mllib.tree.model.Split
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product, scala.Serializable

public class Split extends Object implements scala.Product, scala.Serializable
Split applied to a feature param: feature feature index param: threshold Threshold for continuous feature. Split left if feature is less than or equal to threshold, else right. param: featureType type of feature -- categorical or continuous param: categories Split left if categorical feature value is in this set, else right.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Split(int feature, double threshold, scala.Enumeration.Value featureType, scala.collection.immutable.List<Object> categories)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract static R
    apply(T1 v1, T2 v2, T3 v3, T4 v4)
     
    scala.collection.immutable.List<Object>
     
    int
     
    scala.Enumeration.Value
     
    double
     
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface scala.Equals

    canEqual, equals

    Methods inherited from interface scala.Product

    productArity, productElement, productIterator, productPrefix
  • Constructor Details

    • Split

      public Split(int feature, double threshold, scala.Enumeration.Value featureType, scala.collection.immutable.List<Object> categories)
  • Method Details

    • apply

      public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4)
    • feature

      public int feature()
    • threshold

      public double threshold()
    • featureType

      public scala.Enumeration.Value featureType()
    • categories

      public scala.collection.immutable.List<Object> categories()
    • toString

      public String toString()
      Overrides:
      toString in class Object