|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.ml.tree.CategoricalSplit
public final class CategoricalSplit
:: DeveloperApi :: 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.
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
featureIndex()
Index of feature which this split tests |
double[] |
leftCategories()
Get sorted categories which split to the left |
double[] |
rightCategories()
Get sorted categories which split to the right |
| Methods inherited from class Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int featureIndex()
Split
featureIndex in interface Splitpublic boolean equals(Object o)
equals in class Objectpublic double[] leftCategories()
public double[] rightCategories()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||