Closed samvoisin closed 3 years ago
Transferring this to the pystan2 repo.
This doesn't look like anything I've seen before. Do you have enough memory?
Do you want to try PyStan 3? Since you're on Linux things should work fine.
iter == warmup -> there are no post-warmup samples (so it fails then)
Use iter=1000
to get 500 post-warmup samples.
Wow that worked. Thank you @ahartikainen!
Also thank you to @riddell-stan for putting this issue in the right place. I will start working with pystan3 over the weekend. Looking forward to trying it out.
I am doing Probit regression in PyStan2. I have run several models including a Bayesian linear regression model without issue. However, when I try to run the code below I get a seg fault error:
Interestingly, this only occurs after the warm-up iterations have completed. My model code is here. I am currently making up some data and trying to infer the parameters
beta_tru_1
andalpha
. The model code comes from the Stan User's Guide.I ran the code with
strace -vd
and got the output below. The first line here is the last statement written to stdout when the warm-up iterations are complete.I am using PyStan v. 2.19.1.1 and python 3.7.6 on Linux Pop OS 20.10. I have run this code on multiple machines including an Ubuntu container with no luck. Is this a know Stan issue? Am I doing something obviously wrong in my code? Any help is appreciated.