Package org.apache.spark.ml.tree
Class CategoricalSplit
Object
org.apache.spark.ml.tree.CategoricalSplit
- All Implemented Interfaces:
- Serializable,- Split
Split which tests a categorical feature.
 param:  featureIndex  Index of the feature to test
 param:  _leftCategories  If the feature value is in this set of categories, then the split goes
                         left. Otherwise, it goes right.
 param:  numCategories  Number of categories for this feature.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintIndex of feature which this split testsinthashCode()double[]Get sorted categories which split to the leftintdouble[]Get sorted categories which split to the right
- 
Method Details- 
equals
- 
featureIndexpublic int featureIndex()Description copied from interface:SplitIndex of feature which this split tests- Specified by:
- featureIndexin interface- Split
 
- 
hashCodepublic int hashCode()
- 
leftCategoriespublic double[] leftCategories()Get sorted categories which split to the left
- 
numCategoriespublic int numCategories()
- 
rightCategoriespublic double[] rightCategories()Get sorted categories which split to the right
 
-