Current version of model save/load format.
Current version of model save/load format.
list of labels
log of class priors, whose dimension is C, number of labels
Predict values for a single data point using the model trained.
Predict values for a single data point using the model trained.
array representing a single data point
predicted category from the trained model
Predict values for the given data set using the model trained.
Predict values for the given data set using the model trained.
RDD representing data points to be predicted
an RDD[Double] where each entry contains the corresponding prediction
Predict values for examples stored in a JavaRDD.
Predict values for examples stored in a JavaRDD.
JavaRDD representing data points to be predicted
a JavaRDD[java.lang.Double] where each entry contains the corresponding prediction
Save this model to the given path.
Save this model to the given path.
This saves:
The model may be loaded using Loader.load.
Spark context used to save model data.
Path specifying the directory in which to save this model. If the directory already exists, this method throws an exception.
log of class conditional probabilities, whose dimension is C-by-D, where D is number of features
Model for Naive Bayes Classifiers.