evaluateAtTh: Model evaluation / accuracy assessment at one particular...

Description Usage Arguments Value Examples

Description

Calculation of accuracy for specified thresholds. This returns an object which, when printed, returns the confusion matrix and some model evaluation statistics.

Usage

1
evaluateAtTh(x, th, ...)

Arguments

x

an object of class ModelEvaluation,

th

the threshold

...

arguments passed to evaluate from the dismo package.

Value

an object of class ModelEvaluationAtTh which returns formated confusion matrix and accuracy statistics when printed.

Examples

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

benmack/oneClass documentation built on Dec. 15, 2020, 7:38 p.m.