-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
DOC: added examples to docstring of dirichlet class #9344
Conversation
This is my first pull request to an open-source project. Any pointers on how to improve are much appreciated! |
Hi @jeannefukumaru Thanks a lot for taking the time to prepare this. You are doing quite good so far. A few details to iron out:
|
You can also track what went wrong in the CI suite, for this case these are the documentation errors detected |
Thanks @jeannefukumaru, almost there,
that is because it needs empty lines also after the text blocks in the examples.
scipy/scipy/stats/_multivariate.py Line 1385 in e780726
is too long for 79 character limit.
Otherwise it is good to go. |
Thanks for the detailed feedback! It was very helpful. I've committed the edits you suggested |
Due to the doctest requirements we have to add |
Travis Python 3.6 failure seems like a real one. The expected value for size = 2 is wrong. I get the same value as Travis CI reports >>> dirichlet.rvs(alpha, size=1, random_state=1)
array([[0.00766178, 0.24670518, 0.74563305]])
>>> dirichlet.rvs(alpha, size=2, random_state=2)
array([[0.01639427, 0.1292273 , 0.85437844],
[0.00156917, 0.19033695, 0.80809388]]) |
e204812
to
28b9238
Compare
Since this is almost done, I've rebased it. If CI is happy it can go in. |
Barely made it. Thanks @jeannefukumaru |
Thanks so much for your patience @ilayn :) |
No description provided.