Learn R Programming

OptimalBinningWoE (version 1.0.8)

obwoe_max_bins: Maximum Bins Parameter

Description

A quantitative tuning parameter for the maximum number of bins in step_obwoe.

Usage

obwoe_max_bins(range = c(5L, 20L), trans = NULL)

Value

A dials quantitative parameter object.

Arguments

range

A two-element integer vector specifying the minimum and maximum values for the parameter. Default is c(5L, 20L).

trans

A transformation object from the scales package, or NULL for no transformation. Default is 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.

See Also

step_obwoe, obwoe_min_bins

Examples

Run this code
obwoe_max_bins()
obwoe_max_bins(range = c(4L, 12L))

Run the code above in your browser using DataLab