public class NaiveBayesModel extends Object implements ClassificationModel, scala.Serializable
| Modifier and Type | Method and Description |
|---|---|
double[] |
labels() |
double[] |
pi() |
RDD<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.
|
double[][] |
theta() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpredictpublic double[] labels()
public double[] pi()
public double[][] theta()
public RDD<Object> predict(RDD<Vector> testData)
ClassificationModelpredict in interface ClassificationModeltestData - RDD representing data points to be predictedpublic double predict(Vector testData)
ClassificationModelpredict in interface ClassificationModeltestData - array representing a single data point