Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ENH Add pos_label parameter to TargetEncoder #27342

Open
@lucyleeow

Description

@lucyleeow

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions