-
Notifications
You must be signed in to change notification settings - Fork 174
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
[MRG] Upgrade to support newest scikit-learn version #188
Conversation
libact/query_strategies/multilabel/tests/test_multilabel_realdata.py
Outdated
Show resolved
Hide resolved
requirements.txt
Outdated
@@ -1,7 +1,7 @@ | |||
setuptools | |||
numpy | |||
scipy | |||
scikit-learn<=0.19.2 | |||
scikit-learn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should set the version to the earliest version that our CI can pass. It appears to me it should be something like scikit-learn >= 0.23.0
? Will 0.22.0 work?
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only set scikit-learn >= 0.24
.
There is a conflict between 0.22---0.23
and 0.24
due to cluster.KMeans
change.
- Change random_state in
0.22
. - Change random_state back in
0.24
But I think a change in0.24
is a little strange without a detailed discussion on the scikit-learn release.
PS: From 0.23
to 0.24
is a big change. Most APIs are refactored. I wonder maybe they miss something during upgrading.
libact/query_strategies/multiclass/tests/test_hierarchical_sampling.py
Outdated
Show resolved
Hide resolved
Hi @ariapoy, Thank you so much for submitting this PR. There is one thing I would like to make sure, the change of Thanks. |
Hi @yangarbiter, Yes! Change of |
Change the import style. Co-authored-by: yangarbiter <yangarbiter@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #188 +/- ##
==========================================
+ Coverage 89.47% 89.60% +0.12%
==========================================
Files 37 37
Lines 1568 1597 +29
==========================================
+ Hits 1403 1431 +28
- Misses 165 166 +1
Continue to review full report at Codecov.
|
https://github.com/ntucllab/libact/pull/188/checks?check_run_id=3258702214 |
@yangarbiter Sorry for forgetting to notify you that I just test Ubuntu:20.04 with default Python 3.8. Thanks! |
|
Reference Issues/PRs
No.
What does this implement/fix? Explain your changes.
When upgrading to sklearn==0.24.2, it occurs five FAILs during
python setup.py test
.Any other comments?