| scr_classing_accept | R Documentation |
reason is mandatory. Accepting replaces the variable's current bins;
the previous accepted proposal is marked superseded. A BLOCKED
proposal needs override = TRUE, and the override is itself a ledger row.
scr_classing_accept(lab, proposal, reason, override = FALSE)
scr_classing_discard(lab, proposal, reason)
lab |
An object from |
proposal |
An object from |
reason |
Free text, at least 5 characters. |
override |
Accept a |
The updated lab, invisibly.
scr_coarse_classing() for a complete session, from lab to
scorecard.
Other classing:
scr_classing_apply(),
scr_classing_choose(),
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)
p <- scr_classing_propose(lab, "ds_region",
groups = list(edge = c("NORTH", "SOUTH"),
core = c("EAST", "WEST", "CENTRE")))
lab <- scr_classing_accept(lab, p, reason = "edge/core is what pricing uses")
scr_classing_view(lab, "ds_region")
# a second proposal on the same variable, rejected with its reason
p2 <- scr_classing_propose(lab, "ds_region",
groups = list(c("NORTH", "SOUTH", "EAST"), c("WEST", "CENTRE")))
lab <- scr_classing_discard(lab, p2, reason = "no business rationale for this grouping")
scr_decisions(lab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.