org.apache.spark.ml.tree
Class ContinuousSplit
Object
org.apache.spark.ml.tree.ContinuousSplit
- All Implemented Interfaces:
- java.io.Serializable, Split
public final class ContinuousSplit
- extends Object
- implements Split
:: DeveloperApi ::
Split which tests a continuous feature.
param: featureIndex Index of the feature to test
param: threshold If the feature value is <= this threshold, then the split goes left.
Otherwise, it goes right.
- See Also:
- Serialized Form
Methods inherited from class Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
featureIndex
public int featureIndex()
- Description copied from interface:
Split
- Index of feature which this split tests
- Specified by:
featureIndex
in interface Split
threshold
public double threshold()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object