| scr_gains | R Documentation |
One row per variable and bin, with counts, event rate, WOE, IV, lift, cumulative KS, precision and recall, plus the hold-out IV and the PSI of the variable.
scr_gains(x, only_selected = TRUE)
x |
An object from |
only_selected |
If |
A data.table at bin level.
Other accessors:
scr_funnel(),
scr_leakage(),
scr_result,
scr_score_gains(),
scr_score_metrics(),
scr_selected()
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")
g <- scr_gains(res)
g[feature == scr_selected(res)[1], .(bin, count, pos_rate, woe, iv)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.