Closed CGDINHA closed 3 years ago
Hello!
One of my readers had "RuntimeError: Initialization failed" whiling running my code with her data, and here's her solution: "I realized the issue is with Y variable. I made sure there were no missing data and all positive in Y. But there are good amount of Y which are 0. upon imputing them with mean, I could build the model."
I think errors at the sampling stage are highly likely to be related to the input data. You may want to check your data quality or if the data meet the constraints specified in the model code "data" section (e.g., specified x
Hi Sibyl,
Thanks for you quick response, I could fix it, I hope I will not have to disturb you any more in the future.
Once again, thank you so much. Best regards.
Hi Sibyl,
First, let me thank you in advance for both your post (which is pretty good) and for your help!
I wanted to use your approach in an example but I can not fix the "RuntimeError: Initialization failed" when I do the ".sampling" and I really do not know what else to do. Could you give me any little advice?
Here it goes the data I provide to "sampling", and the error messagge:
Model data:
Error message:
"RuntimeError Traceback (most recent call last)