this function performs crisp calibration based on a set of cutoffs derived from the xgboost trees
Usage
reCalibrateXGCut(data, cutoffs, outcome, na.rm = T)
Arguments
- data
the input data that was used to train xgboost model
- cutoffs
dataframe, contains cutoffs extracted from trained xgboost model
- outcome
string, indicates the name of the outcome variable
- na.rm
logical, whether to remove rows that contain NA after calibration (default: True)
Value
a calibrated dataframe
Examples
if (FALSE) { # \dontrun{
reCalibrateXGCut(voteData, cutDataFrame, "vote")
} # }