-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cannot provide an empty int-valued list #319
Comments
Stanc3 should have this option, because pystan 2 has the same problem. |
I think cmdstan might have solved this. If this is true, we could copy their solution. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Now with Stan 2.27 stanc3 has
(Here is an example with bernoulli example in CmdStan examples.)
And in httpstan solution (copy from
edit. Fix code |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Models which use data which contains an empty int-valued list cannot be used.
This does not have a trivial solution since we use JSON for serializing data and JSON cannot distinguish between an empty list of floats and an empty list of ints.
A completely satisfactory solution will probably involve asking Stan or stanc3 to tell us the type of data variables.
The text was updated successfully, but these errors were encountered: