| scr_result | R Documentation |
Object returned by scr_select(). The methods below are the supported
way of inspecting the result in the console; to extract data, use the
accessors (scr_selected(), scr_funnel(), scr_gains()).
## S3 method for class 'scr_result'
print(x, ...)
## S3 method for class 'scr_result'
summary(object, ...)
## S3 method for class 'scr_result'
as.data.frame(x, ...)
## S3 method for class 'scr_result'
plot(x, ...)
x, object |
An |
... |
Ignored, present for compatibility with the generic. |
print() and plot() return x invisibly; summary() returns
an scr_summary object; as.data.frame() returns the funnel.
Other accessors:
scr_funnel(),
scr_gains(),
scr_leakage(),
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")
res # print: the funnel in one screen
summary(res) # full text report
head(as.data.frame(res)) # the funnel as a data.frame
plot(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.