-
Notifications
You must be signed in to change notification settings - Fork 36
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
Use 'confidence' instead of deprecated 'alpha' for scipy.stats.t.interval #403
Conversation
It seems better not to fix this |
This is a hard decision, I'm not sure if we want to limit ourselves to only being compatible with the most recent version of |
That's a good point @odashi . I'm a bit conflicted about this though. If we completely fix the version of libraries that we rely on (a I don't have the best answer, but I think we should carefully choose a policy and implement it. |
According to semvar that many libraries follow, I think the recommended policy is:
Updating versions of depended libraries needs explicit maintenance (it basically can not be done automatically) so it is our responsibility. |
According to the SciPy's log (scipy/scipy#16389) it attempts to introduce breaking changes in the minor version ( |
Thanks @odashi ! I agree that we should avoid breaking anything, but at the same time
Because of these issues, I've tended to go with |
@neubig The |
The best solution here is to choose a version specifier that won't involve breaking changes. Fixing the major version is enough for semvar-based libraries. We realized that the minor version should also be fixed for SciPy as discussed above. Security updates are basically applied by increasing a weaker version number unless it requires overall refactoring, so For efficiency/features, we need to treat these kind of updates as a usual feature request to this library. |
OK, I agree with this strategy. I guess we should refactor the setup.py/requirements files appropriately then. I'll create an issue. |
Blocked by #472 |
This is ready for review because #563 pinned the version of scipy using the '~=' operator. |
Reduced heavy logging uncovered buried DeprecationWarnings in tests. We get the following DeprecationWarning in the tests that invoke
scipy.stats.t.interval
method:This PR fixes the warning as the warning suggests.