Interface ClassificationModel
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- LogisticRegressionModel,- NaiveBayesModel,- SVMModel
Represents a classification model that predicts to which of a set of categories an example
 belongs. The categories are represented by double values: 0.0, 1.0, 2.0, etc.
- 
Method SummaryModifier and TypeMethodDescriptionPredict values for examples stored in a JavaRDD.doublePredict values for a single data point using the model trained.Predict values for the given data set using the model trained.
- 
Method Details- 
predictPredict values for the given data set using the model trained.- Parameters:
- testData- RDD representing data points to be predicted
- Returns:
- an RDD[Double] where each entry contains the corresponding prediction
 
- 
predictPredict values for a single data point using the model trained.- Parameters:
- testData- array representing a single data point
- Returns:
- predicted category from the trained model
 
- 
predictPredict values for examples stored in a JavaRDD.- Parameters:
- testData- JavaRDD representing data points to be predicted
- Returns:
- a JavaRDD[java.lang.Double] where each entry contains the corresponding prediction
 
 
-