Open
Description
Describe the workflow you want to enable
Add a pos_label
parameter to TargetEncoder
to enable the user to specify which label should be the positive class when the target is binary.
Describe your proposed solution
Add a pos_label
parameter that is passed to the LabelBinarizer
pos_label
parameter.
Describe alternatives you've considered, if relevant
No response
Additional context
Ref: #26674 (comment)
cc @ogrisel