| scr_bin | R Documentation |
Fits the bins on the training rows only (cut points and WOE use the target), in parallel by column, and applies in sequence:
scr_bin(triage, config = scr_config())
triage |
An object from |
config |
An object from |
Screening, native to the engine: eight admission rules
(IV_BELOW_MIN, IV_SUSPICIOUS, NOT_MONOTONIC, TOO_FEW_BINS,
TOO_MANY_BINS, SMALL_BIN, DEGENERATE_BIN, BINNING_ERROR).
Hold-out revalidation with frozen bins: IV recomputed on the same labels, train/hold-out PSI (the fixed threshold decides; the n-adjusted one is reported) and the fraction of hold-out without a bin.
Redundancy pruning by rank correlation on the WOE space,
ranked by hold-out IV. Under allow_derived_final = FALSE the derived
flags leave before this step (derived_excluded), so that a flag
that cannot be delivered never prunes a real column.
An scr_bins object with fit (an obwoe object), screen
(summary and full), holdout, prune, pool (eligible for the
models), derived_excluded, the counts binned, pos_screen and
pos_holdout (the survivors of each gate, in order), the WOE matrices
woe_train/woe_holdout, the originating triage and the config.
Columns are split into config$nthread chunks, each chunk is binned by a
worker and the fits are merged. The result is identical to the serial one
(a test pins this): the engine is deterministic per column.
Other stages:
scr_align(),
scr_cutoff(),
scr_model(),
scr_reject(),
scr_scorecard(),
scr_select(),
scr_split(),
scr_strategy(),
scr_triage()
cfg <- scr_config(verbose = FALSE, nthread = 1)
sp <- scr_split(scr_demo, "default", date_col = "ref_date", drop = "id")
bn <- scr_bin(scr_triage(sp, cfg), cfg)
bn
head(bn$holdout)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.