Skip to content

[WIP] FIX remove validation from __init__ and set_param - #16945

Closed
adrinjalali wants to merge 14 commits into
scikit-learn:mainfrom
adrinjalali:fit/validate
Closed

adrinjalali wants to merge 14 commits into
scikit-learn:mainfrom
adrinjalali:fit/validate

Conversation

@adrinjalali

Copy link
Copy Markdown
Member

Fixes #12652

This PR takes the approach of "validations in __init__ and set_params have been bugs and are fixed w/o a deprecation warning", and moves all validation/private attribute setting to fit or other relevant methods.

@adrinjalali adrinjalali changed the title FIX remove validation from __init__ and set_param [WIP] FIX remove validation from __init__ and set_param Apr 17, 2020

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

I am looking forward to a cleaner API.

Comment thread sklearn/feature_extraction/text.py Resolved
@jnothman

Copy link
Copy Markdown
Member

Should this be MRG? Or is it waiting for something?

@adrinjalali

Copy link
Copy Markdown
Member Author

The failing codecov is legit last time I checked, but I haven't gotten around to write the tests for them.

Base automatically changed from master to main January 22, 2021 10:52
@proinsias

Copy link
Copy Markdown
Contributor

@adrinjalali – is there anything you need to help get this finished?

@adrinjalali

Copy link
Copy Markdown
Member Author

@proinsias there's a bit of work left here. But if you're interested, you can take a single estimator at a time, starting from the easier ones, and create a PR tackling them. Once I'll get back to this issue, I'll continue where you've left then.

@glemaitre

Copy link
Copy Markdown
Member

I would be happy to work on a couple of estimators to help here

@adrinjalali

Copy link
Copy Markdown
Member Author

Closing as done in #21406

@adrinjalali
adrinjalali deleted the fit/validate branch September 15, 2022 16:02
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.

Warnings in common tests about set_params

5 participants