powered by
The functions NB returns an object of the type NB.
NB
An object of class 'NB' is a list with at least the following components:
Matrix with prior probabilities, i.e. marginal class probabilities Pr(class)
list of matrices with conditional probabilities of the features given the classes (one list element per class), Pr(x|class)
Names (character vector) of the classes
number of repetitions of the CV
Number of folds of the CV
objects of the S3 class 'NB'
The following S3 generic functions are available for an object of class NB:
predict
Predict class probabilities for new features data.
print
Basic print method.
NB, NB2
NB2
## See example(NB) for examples
Run the code above in your browser using DataLab