cutoff.calc: Cutoff Calculation for binary class predictions

Description Usage Arguments Value

View source: R/6-1-predict.R

Description

Cutoff Calculation for binary class predictions via different ways.

Usage

1
cutoff.calc(cutoff, trainObj = NULL, modelObj = NULL)

Arguments

cutoff

If it's a number between 0 and 1, return this number. If cutoff == 'prevalence', the prevalence of the first class will be returned. if cutoff == 'optimal', the cutoff will be optimized by maximizing AUC using the training set.

trainObj

A wClsObj object.

modelObj

A wcls object.

Value

A numeric value as the cutoff


SkadiEye/ITRlearn documentation built on May 24, 2019, 1:31 a.m.