| scr_cutoff | R Documentation |
For each candidate cut, what happens in each sample: the fraction of the population on the safe side (approval), the event rate on both sides, the events avoided (share of events falling on the risky side), the non-events lost and the KS at the cut. The candidate cuts are quantiles of the score on train, applied frozen to the hold-out: both samples answer on the same numbers, and the comparison between them measures the stability of the decision, not a sample difference.
scr_cutoff(x, n_cuts = NULL, cuts = NULL)
x |
An object from |
n_cuts |
Number of candidate cuts. |
cuts |
Explicit vector of cuts; overrides |
The "safe side" is the high-score side under higher_is_safer (credit)
and the low-score side under higher_is_riskier (fraud, propensity).
An scr_cutoff object with table (one row per sample and cut)
and direction.
Other stages:
scr_align(),
scr_bin(),
scr_model(),
scr_reject(),
scr_scorecard(),
scr_select(),
scr_split(),
scr_strategy(),
scr_triage()
cfg <- scr_config(verbose = FALSE, nthread = 1, use_ranger = FALSE,
xgb_rounds = 60, n_boot = 20)
res <- scr_select(scr_demo, "default", config = cfg, drop = "id",
date_col = "ref_date")
sc <- scr_scorecard(res)
ct <- scr_cutoff(sc, n_cuts = 10)
ct
st <- scr_strategy(sc, revenue_good = 1080, loss_bad = 4500)
st
rj <- scr_reject(sc)
rj
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.