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
initial gamma distribution #8
Conversation
Just wondering if these kind of PR are welcome here? If so I can also implement other distributions e.g. #21, else we can close this? |
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.
Thank you! Highly appreciated contribution :)
# pylint: disable=too-many-function-args | ||
super().setUp(gamma.Gamma) | ||
self.assertion_fn = lambda x, y: np.testing.assert_allclose(x, y, rtol=RTOL) | ||
|
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.
Could you also add tests for the properties concentration
and rate
? Just to check that the broadcasting is working as intended.
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.
@franrruiz I am not sure what you mean here precisely?
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.
I just meant to add a test where concentration
has shape (say) [4, 2]
and rate
is [2]
. We would test that distribution.concentration
coincides with the input value, and distribution.rate
is [4, 2]
and has been broadcasted properly. (And the same for the reverse, where the broadcasting happens on concentration
). This might seem like a simple thing to test but it's helpful mainly for maintenance.
thanks @franrruiz i'll fix it up and ping you |
@franrruiz I would be ready for another review... I think I have addressed all your issues... thank you so much! |
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.
Thank you again! Just very minor comments.
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.
Thank you again for your contribution!
thanks @hbq1 |
Apologies for the delay with merging your PR, and thanks a lot for sending it in @kashif! |
No description provided.