aum_diffs_binary {aum}R Documentation

aum diffs binary

Description

Convert binary labels to error differences.

Usage

aum_diffs_binary(label.vec, 
    pred.name.vec, denominator = "count")

Arguments

label.vec

Numeric vector representing binary labels (either all 0,1 or all -1,1). If named, names are used to identify each example.

pred.name.vec

Character vector of prediction example names, used to convert names of label.vec to integers.

denominator

Type of diffs, either "count" or "rate".

Value

data table of class "aum_diffs" in which each rows represents a breakpoint in an error function. Columns are interpreted as follows: there is a change of "fp_diff","fn_diff" at predicted value "pred" for example/observation "example". This can be used for computing Area Under Minimum via aum function, and plotted via plot.aum_diffs.

Author(s)

Toby Dylan Hocking <toby.hocking@r-project.org> [aut, cre], Jadon Fowler [aut] (Contributed exact line search C++ code)

Examples


aum_diffs_binary(c(0,1))
aum_diffs_binary(c(-1,1))
aum_diffs_binary(c(a=0,b=1,c=0), pred.name.vec=c("c","b"))
aum_diffs_binary(c(0,0,1,1,1), denominator="rate")


[Package aum version 2023.6.14 Index]