| scr_classing_choose | R Documentation |
The final list is (consensus shortlist + force) - drop, then
intersected with keep when given. force is allowed only for
variables that reached binning; a variable failed for IV_SUSPICIOUS
(the leakage ceiling) and a derived __sp flag under
allow_derived_final = FALSE are refused unless override = TRUE.
reason is one string for every variable named, or a character vector
named by variable.
scr_classing_choose(
lab,
keep = NULL,
drop = NULL,
force = NULL,
reason = NULL,
override = FALSE
)
lab |
An object from |
keep |
Variables to keep (restricts the final list). |
drop |
Variables to remove from the final list. |
force |
Variables to add to the final list. |
reason |
Mandatory when |
override |
Allow a refused |
The updated lab, invisibly.
scr_coarse_classing() for a complete session, from lab to
scorecard.
Other classing:
scr_classing_accept(),
scr_classing_apply(),
scr_classing_propose(),
scr_classing_spec(),
scr_classing_view(),
scr_coarse_classing(),
scr_decisions()
cfg <- scr_config(verbose = FALSE, nthread = 1, use_ranger = FALSE,
use_lightgbm = FALSE, xgb_rounds = 40, n_boot = 10)
d <- scr_demo[, c("default", "ref_date", "ds_region", "ds_band", "vl_score_01",
"vl_score_02", "vl_score_05", "vl_score_10", "vl_hist_01")]
res <- scr_select(d, "default", config = cfg, date_col = "ref_date")
lab <- scr_coarse_classing(res)
lab <- scr_classing_choose(lab, drop = "vl_score_10",
reason = "not available at decision time")
lab
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.