| scr_monitor | R Documentation |
Recomputes, per period of date_col (or for the whole data), the score
PSI against train with frozen bands, the CSI of every variable with
frozen bins plus the signed points shift and, when the target is
present, the performance by vintage (event rate, AUC/KS/Gini with CI).
Always reports both thresholds (fixed and n-adjusted). Schedules
nothing: the analyst calls it when needed.
scr_monitor(
x,
newdata,
date_col = NULL,
target = NULL,
alpha = NULL,
n_boot = NULL,
plan = NULL
)
x |
An object from |
newdata |
New table with the source columns. |
date_col |
Period column. |
target |
Target column in |
alpha |
Level of the adjusted threshold. |
n_boot |
CI resamples per vintage. |
plan |
The monitoring contract: |
An scr_monitor object with psi (score, per period), csi
(per variable and period), vintage (or NULL; status says
"insufficient" when a period has fewer events than the plan requires)
and plan (the contract actually used).
Other production:
predict.scr_align(),
scr_apply(),
scr_export(),
scr_monitoring_plan(),
scr_reasons(),
scr_sql()
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")
sc <- scr_scorecard(res)
mo <- scr_monitor(sc, scr_demo, date_col = "ref_date", target = "default")
mo
mo$psi
head(mo$csi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.