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

Skip to content

FIX make CalibratedClassifierCV not enforce sample alignment for fit_params - #25805

Merged
thomasjpfan merged 2 commits into
scikit-learn:mainfrom
adrinjalali:calibrate-check
Mar 10, 2023
Merged

FIX make CalibratedClassifierCV not enforce sample alignment for fit_params#25805
thomasjpfan merged 2 commits into
scikit-learn:mainfrom
adrinjalali:calibrate-check

Conversation

@adrinjalali

Copy link
Copy Markdown
Member

Fixes #25696

This PR removes the enforcement of sample alignment for fit_params in CalibratedClassifierCV, which makes it the same as other estimators we have.

It also removes the old test which was ensuring the enforcement, and introduces a new test to make sure non-sample-aligned data is accepted and passed along.

@adrinjalali
adrinjalali requested a review from glemaitre March 10, 2023 12:39
@adrinjalali adrinjalali added Quick Review For PRs that are quick to review module:calibration labels Mar 10, 2023

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @adrinjalali

@thomasjpfan thomasjpfan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thomasjpfan
thomasjpfan merged commit 30bf6f3 into scikit-learn:main Mar 10, 2023
@adrinjalali
adrinjalali deleted the calibrate-check branch March 10, 2023 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:calibration Quick Review For PRs that are quick to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CalibratedClassifierCV fails on lgbm fit_params

3 participants