Replies: 1 comment
-
Please post usage-related questions to our Discourse page. The discussions here are intended for development-related topics. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing a hierarchical model using pymc and have a little problem. I want to implement the following: a total of N people are dividing into 2 groups. The group xi ~ Bernoulli(0.5). for person i, if xi=0 (belonging to the first group), yi ~ N(mu1, sigma1); else if xi=1(belonging to the second group), yi~N(mu2,sigma2). Here is my code
This triggered a typeError: 'TensorVariable' object does not support item assignment.
This is actually a small part of my model. So how can I implement a similar function, i.e., how can I assign values to certain prior distribution separately for a larger group of subjects?
Beta Was this translation helpful? Give feedback.
All reactions