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
[WIP] 0.22.2 release branch #16587
[WIP] 0.22.2 release branch #16587
Conversation
I added #16232 which skips a failing doctest |
and #16040 which avoids a deprecation warning for pandas sparse array |
Actually I merged #16586 too quickly: doc/index.rst also needs to be updated to add a link to 0.22.2 from the news section of the home page. |
I'm not sure about that. This file no longer exists, it's now in template/index.html and the version seems automatically detected. It's correctly updated in the artifacts |
you must have been looking to the old maintainers guide :) |
indeed it's now in
|
Right but that should be done after the release right ? |
Yes but why not make it part of the release PR? |
Actually maybe it's better no to update the homepage of scikit-learn before the wheels are on pypi.org. As you wish. But building the website twice is kind of a waste :) |
I kinda tend to put it in the release PR. |
The docs are updated when you merge this PR anyway. It's just a matter of what we include before, what after. I find it nicer if the |
I'm a bit lost here. updating the doc here will only impact the stable version of the web site when merged, right ? |
Yes it only changes the stable one. For certain things you don't need to change anything with a bug-fix release. For instance, with this release the |
So I checked and for 0.22.1 it was done in 2 PRs, one for the dev branch and one backported to 0.22.X after the release. I'm ok to include it here and then make a PR to master after the release. Is it ok for you ? |
Sounds good to me |
I made a sdist and built it in a fresh env and observed weird behavior. Then I ran the test suite and there's one test failing: def test_ard_accuracy_on_easy_problem():
# Check that ARD converges with reasonable accuracy on an easy problem
# (Github issue #14055)
# This particular seed seems to converge poorly in the failure-case
# (scipy==1.3.0, sklearn==0.21.2)
seed = 45
X = np.random.RandomState(seed=seed).normal(size=(250, 3))
y = X[:, 1]
regressor = ARDRegression(n_iter=600)
regressor.fit(X, y)
abs_coef_error = np.abs(1 - regressor.coef_[1])
# Expect an accuracy of better than 1E-4 in most cases -
# Failure-case produces 0.16!
> assert abs_coef_error < 0.01
E assert 0.018021599217421413 < 0.01 |
That seems to be a "known" issue. Although we don't seem to have worked on it: #15420, #16097, #15186 I still don't get in which order the setups are run. But I expect numpy to be installed by the time |
To get the wheels to build on the MacPython CI it might safer to skip the |
This will probably be fixed in master with pyproject.toml that explicitly gives build dependencies. But I think it's not a problem to leave it the way it is for 0.22.2. |
# This test fails on some platforms. | ||
# See https://github.com/scikit-learn/scikit-learn/issues/16097 | ||
# https://github.com/scikit-learn/scikit-learn/issues/15420 | ||
# https://github.com/scikit-learn/scikit-learn/issues/15186 | ||
@pytest.mark.skipif(True, reason="skipping test_ard_accuracy_on_easy_problem.") |
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.
Shouldn't this go in a separate PR in master first? (just to keep things cleaner, I promis to review quickly :D)
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.
@ogrisel suggested to skip on the 0.22.X branch if I'm not mistaken.
We should probably not skip it on master but find out what's going wrong instead, no ?
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.
It seems to only fails on specific platform of BLAS or scipy version, not sure exactly, so it's more for safety that we want to skip it in this branch
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.
yeah, it just would mean that we probably will end up having to do the same thing when we release 0.23 (if it's not fixed by then)
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.
ok, I'll add the issues to the milestone, and we can keep it in this branch
It's green, should we merge and tag ? |
@ogrisel wanna double check and merge? |
fwi the PR on MacPython /scikit-learn-wheels (MacPython/scikit-learn-wheels#47) is green when tested against this branch |
Go! |
branch for the 0.22.2 bug fix release.
I only took commits from the milestone. If you think about other commits that need to be in 0.22.2, please tell me.
Will add #16586 when merged