Package org.apache.spark.ml.tree
Interface Split
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- CategoricalSplit,- ContinuousSplit
Interface for a "Split," which specifies a test made at a decision tree node
 to choose the left or right path.
- 
Method SummaryModifier and TypeMethodDescriptionintIndex of feature which this split testsbooleanshouldGoLeft(int binnedFeature, Split[] splits) Return true (split to left) or false (split to right).booleanshouldGoLeft(Vector features) Return true (split to left) or false (split to right).toOld()Convert to old Split format
- 
Method Details- 
featureIndexint featureIndex()Index of feature which this split tests
- 
shouldGoLeftReturn true (split to left) or false (split to right).- Parameters:
- features- Vector of features (original values, not binned).
- Returns:
- (undocumented)
 
- 
shouldGoLeftReturn true (split to left) or false (split to right).- Parameters:
- binnedFeature- Binned feature value.
- splits- All splits for the given feature.
- Returns:
- (undocumented)
 
- 
toOldSplit toOld()Convert to old Split format
 
-