Class ContinuousSplit

Object
org.apache.spark.ml.tree.ContinuousSplit
All Implemented Interfaces:
Serializable, Split, scala.Serializable

public class ContinuousSplit extends Object implements Split
Split which tests a continuous feature. param: featureIndex Index of the feature to test param: threshold If the feature value is less than or equal to this threshold, then the split goes left. Otherwise, it goes right.
See Also:
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • featureIndex

      public int featureIndex()
      Description copied from interface: Split
      Index of feature which this split tests
      Specified by:
      featureIndex in interface Split
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • threshold

      public double threshold()