The functions NB
returns an object of the type
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
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.
## See example(NB) for examples