org.apache.spark.mllib.tree.model
Class Predict
Object
org.apache.spark.mllib.tree.model.Predict
- All Implemented Interfaces:
- java.io.Serializable
public class Predict
- extends Object
- implements scala.Serializable
Predicted value for a node
param: predict predicted value
param: prob probability of the label (classification only)
- See Also:
- Serialized Form
Constructor Summary |
Predict(double predict,
double prob)
|
Methods inherited from class Object |
getClass, notify, notifyAll, wait, wait, wait |
Predict
public Predict(double predict,
double prob)
predict
public double predict()
prob
public double prob()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object