-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Fix DiscreteDstn #646
Fix DiscreteDstn #646
Conversation
The new version of drawDiscrete did not work properly when the distribution was multivariate. That's now fixed, returning a JxN array of draws (where J is the dimension of the distribution). It also seemed to have a typo/error, referring to Xdim, which does not exist. This commit does not make drawDiscrete work when the input X is an integer, but it didn't work before either.
Fixed makeAggShockDstn() to work properly with new format.
|
||
if exact_match: | ||
# Set up the RNG | ||
RNG = np.random.RandomState(seed) | ||
|
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'm confused-- why did you move the RNG setting into exact_match?
Ideally, this PR would come with an automated test catching the case that was originally broken. That would be very helpful because I expect that the |
I didn't get around to writing this test yet.
…On Fri, May 1, 2020 at 9:51 AM Sebastian Benthall ***@***.***> wrote:
Merged #646 <#646> into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#646 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADKRAFJONBGEWJ5V4L57LLTRPLHVXANCNFSM4MPEB77A>
.
|
I saw that. I figured it was better to have the fix in than not. |
DiscreteDstn wasn't working properly with multivariate distributions. This PR makes some small fixes to it.