-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Error thrown with variational algorithms #1650
Comments
Thanks for reporting this issue! Anybody else seeing this? I cannot reproduce it unfortunately. Which version of rstan do you have installed? |
Yes, managed to reproduce. I think it might actually be related to the version of R itself. On 4.3.1: diagnostics <- as.data.frame(matrix(nrow = 1, ncol = 0))
diagnostics[1:3]
# 1 NULL NULL NULL On 4.4.0: diagnostics <- as.data.frame(matrix(nrow = 1, ncol = 0))
diagnostics[1:3]
# Error in `[.data.frame`(diagnostics, 1:3) : undefined columns selected The problem object is created here and the error is triggered when attempting to subset by I traced the difference in behavior to this line of |
Thank you! This is very helpful! |
I think I fixed it but I currently don't have an R 4.4.0 install to test it myself. Can one of you quickly check it out? |
It works now! |
Great! Thank you! |
Versions: R (4.4.0), brms (2.21.0), cmdstandr (0.7.1), Rtools43, Windows 11 Pro
I'm not sure if this is an issue that only I am having or if others are as well, but I get an error thrown if I fit any of the variational algorithms. For example,
results in the following error thrown:
Note that the estimation algorithm appeared to proceed normally:
I showed the code setting
algorithm = laplace
, but the exception is also thrown if I set toalgorithm = pathfinder
oralgorithm = meanfield
, as well.If I use
algorithm = sampling
, no error is thrown.Originally posted by @marcus-waldman in #1591 (comment)
The text was updated successfully, but these errors were encountered: