Skip to content
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

Fixed Deprecated Package(s) Dependencies #54

Merged
merged 7 commits into from Oct 28, 2020

Conversation

daliu
Copy link
Contributor

@daliu daliu commented Oct 26, 2020

All tests passing.

Use np.ma.MaskedArray directly instead of importing from sklearn's version and import from joblib directly instead of sklearn.externals. It's more proper to export directly instead of relying on sklearn externals and exposed packages which have no guarantees for maintenance and accessibility.

As a rule of thumb, don't use publicly-exposed sklearn internal functions/tools when building a package for others because there will very likely be future dependency issues as things become deprecated and disappear.

Thank you guys so much for building this tool for the community. I've tried to use Dask's version, but their implementation doesn't seem to work with XGBoost that doesn't implement partial_fit() or something.

I'll continue to chip-in as I can if I encounter any further issues, thanks.

… sklearn. More proper to export directly instead of relying on sklearn externals and exposed packages which have no guarantees for maintainence and accessibility.
Copy link
Contributor

@mheilman mheilman left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I had a few comments and questions, and it looks like flake8 is complaining in travis CI.

Makefile Outdated Show resolved Hide resolved
civismlext/hyperband.py Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
@daliu
Copy link
Contributor Author

daliu commented Oct 27, 2020

Oops!!! Totally forgot about flake8, sorry about that!

…ments for MaskedArray serializable fix, flake8 formatting
@daliu
Copy link
Contributor Author

daliu commented Oct 28, 2020

Ok, so I noticed that Travis CI is breaking down specifically on Python 2.7, 3.4, and 3.5 all of which are deprecated. (3.5 ended support on Oct 2nd, 2020.)

Is it important to maintain these outdated Python version compatibility? Because from an open-source perspective, I think we should just modify the Travis CI to approve on checking 3.6+, but I guess that's up to you guys.

@daliu daliu requested a review from mheilman October 28, 2020 04:33
Copy link
Contributor

@mheilman mheilman left a comment

Choose a reason for hiding this comment

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

LGTM

@mheilman
Copy link
Contributor

Is it important to maintain these outdated Python version compatibility?

No, we don't need to maintain the tests for python 3.5 and earlier. We just haven't gotten rid of them for this repo yet. Sorry for the extra trouble there.

@mheilman mheilman merged commit d204f4f into civisanalytics:master Oct 28, 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.

None yet

2 participants