Skip to content

FIX InstanceHardnessThreshold accepts classifier included in a Pipeline - #1049

Merged
glemaitre merged 5 commits into
scikit-learn-contrib:masterfrom
gmogol:gmogol-patch-1-1
Mar 30, 2024
Merged

glemaitre merged 5 commits into
scikit-learn-contrib:masterfrom
gmogol:gmogol-patch-1-1

Conversation

@gmogol

@gmogol gmogol commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

Added the option to add a pipeline as an estimator for instance hardness threshold. Currently using a pipeline as an estimator fails because of the instance check. I think it's useful to be able to use pipelines as estimators and have thus added it.

Reference Issue

What does this implement/fix? Explain your changes.

Any other comments?

Added the option to add a pipeline as an estimator for instance hardness threshold. Currently using a pipeline as an estimator fails because of the instance check. I think it's useful to be able to use pipelines as estimators and have thus added it.
@glemaitre

Copy link
Copy Markdown
Member

The linter is failing. Could you add a non-regression test that would fail in master but that make it work in this PR.

@glemaitre
glemaitre self-requested a review March 30, 2024 17:58
@glemaitre glemaitre changed the title Updated _instance_hardness_threshold.py to allow for pipelines as estimator FIX InstanceHardnessThreshold accepts classifier included in a Pipeline Mar 30, 2024
@glemaitre
glemaitre merged commit b4faf5f into scikit-learn-contrib:master Mar 30, 2024
glemaitre added a commit that referenced this pull request Mar 31, 2024
…ne (#1049)

Co-authored-by: Guillaume Lemaitre <guillaume@probabl.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants