Skip to content

FIX raise NotFittedError in OrdinalEncoder when required - #27821

Merged
thomasjpfan merged 2 commits into
scikit-learn:mainfrom
glemaitre:not_fitted_error_ordinal_encoder
Nov 23, 2023
Merged

FIX raise NotFittedError in OrdinalEncoder when required#27821
thomasjpfan merged 2 commits into
scikit-learn:mainfrom
glemaitre:not_fitted_error_ordinal_encoder

Conversation

@glemaitre

Copy link
Copy Markdown
Member

@ogrisel observed this error while answering some question on the forum of the scikit-learn MOOC.

Since this estimator was never stateless, we can safely considered it as a bug fix.

@glemaitre

Copy link
Copy Markdown
Member Author

ping @ogrisel

Comment thread doc/whats_new/v1.4.rst Outdated
@github-actions

github-actions Bot commented Nov 21, 2023

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 32065c3. Link to the linter CI: here

@ogrisel ogrisel 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.

We would probably a common a test for this but let's quickly fix this bug first.

@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 0816e00 into scikit-learn:main Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants