Skip to content

[MRG] 👽 Maintenance for imblearn.show_versions(), fix Travis build - #591

Merged
chkoar merged 5 commits into
scikit-learn-contrib:masterfrom
hayesall:show_versions_maint
Sep 5, 2019
Merged

chkoar merged 5 commits into
scikit-learn-contrib:masterfrom
hayesall:show_versions_maint

Conversation

@hayesall

@hayesall hayesall commented Aug 9, 2019

Copy link
Copy Markdown
Member

Summary

  • Drop get_blas_info() vendored from sklearn
  • Fix unit tests to reflect the fix

What does this implement/fix? Explain your changes.

imblearn/utils/_show_versions used several utilities from scikit-learn. BLAS/CBLAS were recently dropped and get_blas_info() was removed.

This patch reflects these changes.

Any other comments?

See scikit-learn#14205

Drop `get_blas_info()` vendored from sklearn
Fix unit tests to reflect the fix
@pep8speaks

pep8speaks commented Aug 9, 2019 •

Copy link
Copy Markdown

Hello @hayesall! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-08-14 16:30:23 UTC

Fix `imblearn.utils._show_versions` by shortening a line
Fix test case to reflect this change
@codecov

codecov Bot commented Aug 14, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #591 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #591      +/-   ##
==========================================
- Coverage   98.92%   98.92%   -0.01%     
==========================================
  Files          85       85              
  Lines        5324     5310      -14     
==========================================
- Hits         5267     5253      -14     
  Misses         57       57
Impacted Files Coverage Δ
imblearn/utils/_show_versions.py 100% <100%> (ø) ⬆️
imblearn/utils/tests/test_show_versions.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1be869...eed2e70. Read the comment docs.

@hayesall

hayesall commented Aug 14, 2019 •

Copy link
Copy Markdown
Member Author

Build is still failing on Travis with:

ReadError('file could not be opened successfully')

edit:

It looks like the error is stemming from install.sh when creating a new conda environment, but it will take me a bit longer to debug it.

edit2:

It looks like updating conda resolves this error:

- conda install --yes conda=4.6
+ conda config --set always_yes yes --set changeps1 no
+ conda install conda=4.6
+ conda update -q conda

I also added a few of the recommendations from the conda + Travis guide, such as printing debug information and setting default values.

Bump `SKLEARN_VERSION="0.21.3"` in `.travis.yml`
Add conda config and debugging options to `install.sh`
@hayesall hayesall changed the title [MRG] 👽 Maintenance for imblearn.show_versions() [MRG] 👽 Maintenance for imblearn.show_versions(), fix Travis build Aug 15, 2019
@hayesall

Copy link
Copy Markdown
Member Author

@glemaitre, @chkoar Errors with Travis-CI should be resolved now. This should also fix the build failure in #592

EvgeniDubov added a commit to EvgeniDubov/imbalanced-learn that referenced this pull request Aug 15, 2019
@chkoar
chkoar merged commit 44ac642 into scikit-learn-contrib:master Sep 5, 2019
@chkoar

chkoar commented Sep 5, 2019

Copy link
Copy Markdown
Member

Thanks

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.

3 participants