accuracy {bnclassify} | R Documentation |
Compute predictive accuracy.
Description
Compute predictive accuracy.
Usage
accuracy(x, y)
Arguments
x |
A vector of predicted labels. |
y |
A vector of true labels. |
Examples
data(car)
nb <- bnc('nb', 'class', car, smooth = 1)
p <- predict(nb, car)
accuracy(p, car$class)
[Package bnclassify version 0.4.8 Index]