rsmp_pre: Resample precision

Description Usage Arguments Details Value

Description

Compute the precision (proportion of stations classified as non-perennial that are actually IRES) from a single ResampleResult extracted from an mlr3 BenchmarkResult.
This is a utility function.

Usage

1
rsmp_pre(bmres, rsmp_i, threshold_class)

Arguments

bmres

BenchmarkResult from either a binary classification model or a regression model bounded between 0 and 1.

rsmp_i

(integer) index of the resample result to process.

Details

Precision is computed as the number of true positives (i.e. the number of items correctly labelled as belonging to the positive class) divided by the total number of elements labelled as belonging to the positive class. Wikipedia actually has a nice explanation for it.

Value

(numeric) precision


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.