| scr_model | R Documentation |
Trains the classifiers enabled in the configuration on the WOE columns of the eligible pool, measures each on the hold-out (AUC/KS/Gini with a bootstrap CI) and combines the votes:
scr_model(bins, config = scr_config())
bins |
An object from |
config |
An object from |
consensus_score = mean of the importance rank percentiles, weighted by the
hold-out Gini of each model
votes = how many models elected the feature (top-K, or non-zero
coefficient in the elastic net)
The final cut respects [target_min, target_max]. If the strict
consensus does not reach target_min, relaxation happens in named,
recorded steps (min_votes reduced; completed by score), never
resurrecting a feature failed by an earlier gate.
An scr_models object with votes (one row per model and
feature), metrics (one row per model, with CI), consensus (table,
selected, meta) and the originating bins.
Other stages:
scr_align(),
scr_bin(),
scr_cutoff(),
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)
sp <- scr_split(scr_demo, "default", date_col = "ref_date", drop = "id")
md <- scr_model(scr_bin(scr_triage(sp, cfg), cfg), cfg)
md
md$consensus$selected
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.