accuracy | R Documentation |
Compute predictive accuracy.
accuracy(x, y)
x |
A vector of predicted labels. |
y |
A vector of true labels. |
data(car)
dpl.lshade <- lshade(NP = 20, G = 25, data = car, class.name = names(car)[7], c = 0.1,
structure = "tan", pB = 0.05, edgelist = NULL, verbose = 5)
p <- predict(dpl.lshade$Best, car)
accuracy(p, car$class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.