public interface ClassificationModel
extends scala.Serializable
Modifier and Type | Method and Description |
---|---|
JavaRDD<java.lang.Double> |
predict(JavaRDD<Vector> testData)
Predict values for examples stored in a JavaRDD.
|
RDD<java.lang.Object> |
predict(RDD<Vector> testData)
Predict values for the given data set using the model trained.
|
double |
predict(Vector testData)
Predict values for a single data point using the model trained.
|
RDD<java.lang.Object> predict(RDD<Vector> testData)
testData
- RDD representing data points to be predicteddouble predict(Vector testData)
testData
- array representing a single data point