A quantitative tuning parameter for the maximum number of bins in
step_obwoe.
Usage
obwoe_max_bins(range = c(5L, 20L), trans = NULL)Details
The maximum number of bins limits algorithm complexity and helps prevent overfitting. Higher values allow more granular discretization but may capture noise rather than signal.
For credit scoring applications, max_bins is typically set between
5 and 10 to balance predictive power with interpretability. Values above
15 are rarely necessary and may indicate overfitting.
Examples
obwoe_max_bins()
#> Maximum Bins (quantitative)
#> Range: [5, 20]
obwoe_max_bins(range = c(4L, 12L))
#> Maximum Bins (quantitative)
#> Range: [4, 12]
