-
model
NaiveBayes.Model model
The generation model of naive Bayes.
-
k
int k
The number of classes.
-
p
int p
The number of independent variables.
-
priori
double[] priori
The priori probability of each class.
-
prob
smile.stat.distribution.Distribution[][] prob
The conditional distribution for general purpose naive Bayes classifier.
-
sigma
double sigma
Amount of add-k smoothing of evidence. By default, we use add-one or
Laplace smoothing, which simply adds one to each count to eliminate zeros.
Add-one smoothing can be interpreted as a uniform prior (each term occurs
once for each class) that is then updated as evidence from the training
data comes in.
-
predefinedPriori
boolean predefinedPriori
True if the priori probabilities are pre defined by user.
-
n
int n
The total number of instances.
-
nc
int[] nc
The number of instances in each class.
-
nt
int[] nt
The number of terms in each class.
-
ntc
int[][] ntc
The number of terms in each class.
-
condprob
double[][] condprob
The log conditional probabilities for document classification.