Hello friends, I’m starting with numpyro and I’m getting a message that I’m not sure how to fix. I have been working on understanding my sample, batch, and event shapes, but I’m getting a warning when I train my model. When I do a trace this is what I get:
Trace Shapes:
Param Sites:
Sample Sites:
fit_cyc_pl plate 1 |
hem_pl plate 2 |
ref_cyc_pl plate 6 |
threshld dist 1 |
value 1 |
offst dist 6 2 1 |
value 6 2 1 |
obs dist 6 2 1 |
value 9853 6 2 1 |
Note that the number 9853 correspond to the number of observations that I’m fitting. The other dimensions are associated with the plates I define: 1 cycle that I’m fitting, 2 hemispheres in that cycle, and I’m comparing it against 6 reference cycles. I was kind of assuming that numpyro would understand that 9853 is the sample shape, but when I train my model I get this warning:
UserWarning: Missing a plate statement for batch dimension -4 at site 'obs'.
Am I incorrect when I think that my leftmost dimension is my sample dimension and that it should not be visible in the trace?
Thank you for your kindness if you can help me.