Current version of model save/load format.
Current version of model save/load format.
list of labels
list of labels
The type of NB model to fit can be "multinomial" or "bernoulli"
The type of NB model to fit can be "multinomial" or "bernoulli"
log of class priors, whose dimension is C, number 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
Predict posterior class probabilities for a single data point using the model trained.
Predict posterior class probabilities for a single data point using the model trained.
array representing a single data point
predicted posterior class probabilities from the trained model, in the same order as class labels
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[Vector] where each entry contains the predicted posterior class probabilities, in the same order as class labels
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
log of class conditional probabilities, whose dimension is C-by-D, where D is number of features
Model for Naive Bayes Classifiers.