Skip to content

[MRG] Rename _parallel_fit_estimator to _fit_single_estimator#16599

Merged
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
wderose:is/16595
Feb 29, 2020
Merged

[MRG] Rename _parallel_fit_estimator to _fit_single_estimator#16599
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
wderose:is/16595

Conversation

@wderose
Copy link
Copy Markdown

@wderose wderose commented Feb 29, 2020

Reference Issues/PRs

Closes #16595

What does this implement/fix? Explain your changes.

Renames a non-public API method from _parallel_fit_estimator to _fit_single_estimator to better reflect the serial/single-threaded operation actually performed by the method. No parallel calls are made in the method. The parallel part will come when we pass this method to the Parallel class, as we do here and here.

In PR #16539, it was suggested that we rename this method to _fit_single_estimator to clarify the usage intent. See this comment specifically: https://github.com/scikit-learn/scikit-learn/pull/16539/files#r385937964

Any other comments?

Copy link
Copy Markdown
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @wderose , LGTM if all goes green!

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

I see this is your first time contributing, welcome!

LGTM

@thomasjpfan thomasjpfan merged commit 68a639e into scikit-learn:master Feb 29, 2020
@wderose wderose deleted the is/16595 branch February 29, 2020 19:22
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
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.

Maintenance: _parallel_fit_estimator is used to fit a single estimator but has parallel in the name

3 participants