-
-
Notifications
You must be signed in to change notification settings - Fork 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
Last dimension is dropped by random when size is one #3896
Comments
Hey David, I'll ping @lucianopaz -- wizard of shapes. Thanks for PyMC2 :). |
@huard, @twiecki, I became aware of this some time ago, while refactoring |
@lucianopaz Thanks for the explanation. If you make the fix, I can then spend some time adjusting the tests. @twiecki You're welcome, fun times ! |
#4214 seems to have fixed this. I can reproduce before but not after. Feel free to re-open if the problem subsists. |
Nice! |
Nice that it's fixed, thanks for checking @ricardoV94 ! Reopening though as it would be good to include this little example as a test case to make sure this continues working in the future, and this makes for a good beginner-friendly issue |
@MarcoGorelli that's a good point. I assumed the new tests after that PR would cover this issue but that is not necessarily the case (even less so since the issue was not even linked) |
@almostmeenal Assigning you to this one per your comment here #4214 Quick tip: Its better to comment on the issue you want to work on, rather than a related PR, as this issue would be the more relevant thread of discussion Edit. Seems that github is not allowing me to do so but consider yourself assigned. |
cool, thanks. |
GitHub only allows assigning issues to team members or people who have commented on it, which is again another motive to comment on the issue, then we can assign it to you to indicate you are working on it |
@almostmeenal Do you feel like you have a good idea of how to approach this issue or do you want to talk it through? Were happy answer any questions now or later if you have them too |
thanks, um so I'm sorry for the delay i was occupied with some college work, I'll try to get to it today and get back to you tomorrow with concerns, does that work? |
You can get back to us with questions at any time, and don't worry too much about the timeline or speed of work, we all have other commitments in addition to open source, you should work at a pace that is comfortable for you and fits with the rest of your schedule. |
@almostmeenal I agree with what Oriol said. The code will be here, take care of yourself first! |
I'm not sure about what are we supposed to take a look at to see if it works, if you can clarify I'll happily do it. |
Ok, I have already taken a look at the code and image, I was confused because it is on a different issue. Thanks for clarifying :) |
@almostmeenal Can you repost the image and code in this issue? Im unable to find it as well :) |
You have to go to the issue about the interpolated docstring: #3859 (comment) |
I'm really sorry, I replied from mail and hence replied to the wrong issue in confusion. |
The issue was already fixed by #4214, however, the PR did not add a test to check for this and ensure that posterior PRs don't break this again. You'll see that the issue was originally closed but was then reopened as a remainder to add the test. |
Sorry for joining in late to the discussion. @michaelosthege had already added unit tests including parametrizing Also, I think it would be better if efforts are redirected towards solving #4554 which aims at a complete revamp of |
|
@almostmeenal It seems like theres a lot of "noise" around this issue so unassigning it to you since its not exactly clear what the need is. For the other pymc devs. Removing the beginner label since this conversation, and timing with our new release, is too confusing for a beginner to navigate now, |
Since the discussion was about having tests and we already have that tests ----> closing the issue. |
Thanks @Sayam753 |
Description of your problem
The last dimension is squeezed when generating random samples. This creates a problem when converting posterior predictive samples to DataArray objects.
In the following example, I would expect the second case to have shape (10, 1, 2, 1).
Versions and main components
The text was updated successfully, but these errors were encountered: