8000 DOC improve docstring of BaseEstimator, ClassifierMixin, and RegressorMixin by Higgs32584 · Pull Request #28030 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC improve docstring of BaseEstimator, ClassifierMixin, and RegressorMixin #28030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 12, 2024

Conversation

Higgs32584
Copy link
Contributor
@Higgs32584 Higgs32584 commented Dec 27, 2023

Reference Issues/PRs

#27982

What does this implement/fix? Explain your changes.

This is an implementation of #27982 for adding examples under every public class. I added an example for 8000 sklearn.base.ClassifierMixin and sklearn.base.ClassifierMixin. The two examples are redundant. If you would like shorter examples let me know, but I believe an implementation with a longer one helps explain it a bit better.

Any other comments?

Copy link
github-actions bot commented Dec 27, 2023

✔️ Linting Passed

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

Generated for commit: 6943134. Link to the linter CI: here

@Higgs32584 Higgs32584 changed the title sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin DOCS sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin Dec 27, 2023
@Higgs32584 Higgs32584 changed the title DOCS sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin Documentation, Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin Dec 27, 2023
@Higgs32584 Higgs32584 deleted the branch scikit-learn:main December 27, 2023 23:13
@Higgs32584 Higgs32584 closed this Dec 27, 2023
@Higgs32584 Higgs32584 deleted the main branch December 27, 2023 23:13
@Higgs32584 Higgs32584 restored the main branch December 27, 2023 23:14
@Higgs32584 Higgs32584 reopened this Dec 27, 2023
@Higgs32584 Higgs32584 changed the title Documentation, Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin DOC Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin Dec 28, 2023
@Higgs32584 Higgs32584 changed the title DOC Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin DOC Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin sklearn/base Dec 28, 2023
@Higgs32584 Higgs32584 changed the title DOC Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin sklearn/base DOC Examples, for sklearn.base.BaseEstimator and sklearn/base/ClassifierMixin Dec 28, 2023
@Higgs32584 Higgs32584 changed the title DOC Examples, for sklearn.base.BaseEstimator and sklearn/base/ClassifierMixin DOC Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin Dec 28, 2023
@glemaitre glemaitre self-requested a review January 12, 2024 10:24
Copy link
Member
@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

Thanks @Higgs32584.

I made the following change:

  • added a long summary (it was not requested but this is the opportunity to do so).
  • change slightly the example to only use BaseEstimator
  • add the RegressorMixin at the same time.

@glemaitre
Copy link
Member

I will check the rendering and if this is fine, I'll be merging. Thanks @Higgs32584

@glemaitre glemaitre changed the title DOC Examples, for sklearn.base.BaseEstimator and sklearn.base.ClassifierMixin DOC improve docstring of BaseEstimator, ClassifierMixin, and RegressorMixin Jan 12, 2024
@glemaitre glemaitre merged commit 95d2017 into scikit-learn:main Jan 12, 2024
@glemaitre
Copy link
Member

Thanks @Higgs32584

jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jan 17, 2024
…rMixin (scikit-learn#28030)

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
jeremiedbb pushed a commit that referenced this pull request Jan 17, 2024
…rMixin (#28030)

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Feb 10, 2024
…rMixin (scikit-learn#28030)

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
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.

2 participants
0