opt.thresh: Optimal threshold

Description Usage Arguments Value

View source: R/Utils.R

Description

Compute the the optimal classification threshold

Usage

1
opt.thresh(pred, obs)

Arguments

obs

ground truth (correct) 0-1 labels vector

prob

Predicted probabilities by a classifier

opt.method

optima classifcation threshold method see package PresenceAbsence. Default is the minRoc distance: i.e the threshold value at the minimum distance between the ROC curve and the to left hand corner (0,1)

Value

threhold


nguforche/MEml documentation built on April 20, 2020, 7:26 a.m.