Description Usage Arguments Value Examples
Calculation of accuracy for specified thresholds. This returns an object which, when printed, returns the confusion matrix and some model evaluation statistics.
1 | evaluateAtTh(x, th, ...)
|
x |
an object of class |
th |
the threshold |
... |
arguments passed to |
an object of class ModelEvaluationAtTh which returns formated confusion matrix and accuracy statistics when printed.
1 2 3 4 5 6 7 8 | # get an ModelEvaluation object
ev <- dismo::evaluate( p=rnorm(25, mean = 1), a=rnorm(100, mean = -1) )
# use evaluateAtTh in order to get an
evAt0 <- evaluateAtTh(ev, th=0)
evAtMaxK <- evaluateAtTh(ev, th='max.kappa')
# print the confusion matrices and some model evaluation statistics
evAt0
evAtMaxK
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.