reclassProb: Convert probabilities to classifications

Description Usage Arguments Details Value Note

Description

For building confusion matrices

Usage

1
reclassProb(yhats, thresh)

Arguments

yhats

a dataframe resulting from a call to probExtract

thresh

a numeric from 0 to 1 representing the cutpoint for the probability

Details

Only works for caretEnsemble, train, and glm objects currently. Corrects for the differential ordering in what the predicted probability is with respect to.

Value

a vector the length of rows in yhats representing the conversion from a numeric probability to a factor using the threshold thresh

Note

If you find errors, it is likely that the probabilities are inverted. Please report this.


jknowles/EWStools documentation built on May 19, 2019, 11:42 a.m.