Skip to content

[MRG + 1] Fix _get_importances.#7487

Merged
NelleV merged 1 commit intoscikit-learn:masterfrom
fukatani:fix-get-feature-importances
Sep 25, 2016
Merged

[MRG + 1] Fix _get_importances.#7487
NelleV merged 1 commit intoscikit-learn:masterfrom
fukatani:fix-get-feature-importances

Conversation

@fukatani
Copy link
Copy Markdown
Contributor

Fixes #7481.

Not to use expensive hasattr, call getattr explicitly.
And call getattr only once.

Not to use hasattr.
@fukatani fukatani changed the title [WIP] Fix _get_importances. [MRG] Fix _get_importances. Sep 25, 2016
@amueller
Copy link
Copy Markdown
Member

lgtm

@amueller amueller changed the title [MRG] Fix _get_importances. [MRG + 1] Fix _get_importances. Sep 25, 2016
@NelleV NelleV merged commit 3a106fc into scikit-learn:master Sep 25, 2016
@jnothman
Copy link
Copy Markdown
Member

Thanks @fukatani

TomDLT pushed a commit to TomDLT/scikit-learn that referenced this pull request Oct 3, 2016
amueller pushed a commit to amueller/scikit-learn that referenced this pull request Oct 14, 2016
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
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.

4 participants