-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
BUG, TST: stats: fix RuntimeWarnings and add tests for the support method #13967
Conversation
Not sure offhand what others there are. It would take a close look. |
The failing tests seem related to the errors seen in gh-13844. I think we can add a |
I will take a closer look and try to incorporate those in this PR. |
@tirthasheshpatel do we basically just need a rebase here now or are there still some tests that are likely to fail? Are the testing changes adjusting any old test cases, or just strictly adding guards for new test cases? |
…thod The support method sometimes raised warnings when invalid inputs were given. This behaviour has been fixed and a more comprehensive test suite for the support method has been added.
b164cb4
to
f45cedc
Compare
f45cedc
to
fa57084
Compare
I think it's fine to bump the milestone here as the primary goal of the PR is to add tests. I am thinking about using Hypothesis to centrally test multiple methods of all the distributions for more comprehensive testing rather than trying to write separate test cases for each method as I do here. |
@tirthasheshpatel do you have some time to work on this over the next few months? |
I agree! Moreover, I think the Feel free to reopen if you disagree or have other comments. |
Reference issue
closes gh-13504
What does this implement/fix?
The support method sometimes raised warnings when invalid inputs were given. This behavior has been fixed and a more comprehensive test suite for the support method has been added.
Additional information
In gh-13504,
Are there any specific methods missing tests with array inputs? I think most of them have been tested for specific distributions but can't find many test that check all the methods of all the distributions with valid and invalid array inputs in
scipy.stats
.