Learn R Programming

lares (version 4.7)

calibrate: Calibrate Sampling Scores

Description

This function lets the user calibrate a model's predictions when under or over sampling methods were applied when training it.

Usage

calibrate(score, train, target, train_sample, target_sample)

Arguments

score

Vector. Probability predictions of the model output

train

Integer. Total row count in the training dataset

target

Integer. Total row count of the target class in the training dataset

train_sample

Integer. Total row count in the training dataset after sampling

target_sample

Integer. Total row count of the target class in the training dataset after sampling

See Also

Other Data Wrangling: balance_data, categ_reducer, cleanText, date_feats, dateformat, formatNum, formatTime, holidays, impute, left, normalize, numericalonly, ohse, one_hot_encoding_commas, rbind_full, removenacols, removenarows, replaceall, right, textFeats, textTokenizer, vector2text, year_month, year_week