org.apache.spark.mllib.tree.model
Class Split
Object
org.apache.spark.mllib.tree.model.Split
- All Implemented Interfaces:
- java.io.Serializable, scala.Equals, scala.Product
public class Split
- extends Object
- implements scala.Product, scala.Serializable
:: DeveloperApi ::
Split applied to a feature
param: feature feature index
param: threshold Threshold for continuous feature.
Split left if feature <= threshold, else right.
param: featureType type of feature -- categorical or continuous
param: categories Split left if categorical feature value is in this set, else right.
- See Also:
- Serialized Form
Constructor Summary |
Split(int feature,
double threshold,
scala.Enumeration.Value featureType,
scala.collection.immutable.List<Object> categories)
|
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
Split
public Split(int feature,
double threshold,
scala.Enumeration.Value featureType,
scala.collection.immutable.List<Object> categories)
feature
public int feature()
threshold
public double threshold()
featureType
public scala.Enumeration.Value featureType()
categories
public scala.collection.immutable.List<Object> categories()
toString
public String toString()
- Overrides:
toString
in class Object