-
-
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
Type problem in MvNormal.logp when called with numpy array #3051
Comments
Yes this is due to some implementation detail (I don't remember why) - try wrapping the observed value in theano: |
That worked. Thank you! |
re-opening because I just had the same problem. The fix is easy, but I don't have the time right now to do the PR. |
I can try working on this if you want @michaelosthege ? |
Sure, contributions are always welcome :) |
Great, I'll give it a try ASAP then -- will keep you posted if I have any questions 😉 |
I was working on this PR, and I believe in |
Converts 'int' type to <TensorType(int64,Scalar)> to parse value to `astype` and allows arguments to `logp(self,value)` when called with numpy array.
Closes pymc-devs#3051 - logp numpy array input- fixed
Maybe also |
Allows `logp(self,value)` to take `value` input of type numpy array without errors
Can anyone recall why it is legitimate to use |
Hi all, I don't want to play the killjoys but I wanted to kindly highlight that I signaled my interest in this issue last week. |
@Ahanmr I agree with @AlexAndorra here, before starting to work on something you should check if someone else is working on that. |
@AlexAndorra @aloctavodia Sincere apologies, I'll keep that in mind next time, my only motive was to give it a go since I had an idea and thought I'd give it a try! Plus, I'm stuck with few tests failing, so please do help me with the same and correct me in case I'd made a mistake! |
Description of the problem
The multivariate distribution fails here:
with the error
It seems
value.shape
is aspected to have theastype
callable, like a numpy array but is only a python base tuple:Overwriting the shape by a numpy array did not do the trick:
Versions and main components
The text was updated successfully, but these errors were encountered: