Skip to content

Conversation

@glemaitre
Copy link
Member

In #14028, we face a pytest bug which confusing permutation_importance as a module and a function after the collection of the tests.

permutation_importance.py has been renamed to _permutation_importance.py during the module privatization. However, we are raising a deprecation warning and creating a permutation_importance.py module for that. This is unnecessary since permutation_importance.py module is not existing in scikit-learn 0.21 and his only present in the master branch. Therefore, we can safely rename the module with the leading underscore without breaking people code and work around the pytest bug.

Note that it would be nice to get a minimal example to report to pytest regarding this issue.

@glemaitre
Copy link
Member Author

Copy link
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.

OK, no idea whether this will fix the other pytest issue but indeed we don't need to create the fake file in this case

@glemaitre
Copy link
Member Author

glemaitre commented Oct 24, 2019 via email

@rth rth merged commit f1330cd into scikit-learn:master Oct 24, 2019
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