View source: R/helpers-scorecard.R
woebin_summary | R Documentation |
Get scorecard's woe_bin summary
woebin_summary(bins, sort = TRUE)
bins |
An output from 'scorecard::woebin' or 'risk3r::woebin2' functions. |
sort |
Sort the data frame by information value. Default TRUE. |
if (FALSE) {
data(germancredit, package = "scorecard")
bins <- woebin2(
germancredit,
y = "creditability",
# x = c("credit.amount", "housing", "duration.in.month", "purpose"),
no_cores = 0,
method = "tree"
)
bin_summary <- woebin_summary(bins)
bin_summary
if (require(dplyr)) {
dplyr::glimpse(bin_summary)
dplyr::filter(bin_summary, !monotone, !factor)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.