Learn R Programming

OptimalBinningWoE (version 1.0.8)

obwoe_min_bins: Minimum Bins Parameter

Description

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

Usage

obwoe_min_bins(range = c(2L, 5L), 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(2L, 5L).

trans

A transformation object from the scales package, or NULL for no transformation. Default is NULL.

Details

The minimum number of bins constrains the algorithm to create at least this many bins. Setting min_bins = 2 allows maximum flexibility, while higher values ensure more granular discretization.

For credit scoring applications, min_bins is typically set between 2 and 4 to avoid forcing artificial splits on weakly predictive variables.

See Also

step_obwoe, obwoe_max_bins

Examples

Run this code
obwoe_min_bins()
obwoe_min_bins(range = c(3L, 7L))

Run the code above in your browser using DataLab