-
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
Infinite Error Printing - sh: findstr: command not found #52
Comments
Are you fitting with the argument plot=TRUE or plot = some positive
integer? What operating system?
…On Wed, 30 Aug 2023, 03:15 phvv, ***@***.***> wrote:
I am running *ctStanFit* to receive a Bayesian estimation via Stan’s NUTS
sampler. An error message is infinite loop printing while doing so. This
doesn’t seem to be interfering with the underlying computation as the
function appears to run to completion (albeit probably slower). The error is
sh: findstr: command not found
From a quick search of the codebase, there doesn't appear to be many
instances of the findstr function. Just here
<https://github.com/cdriveraus/ctsem/blob/9559413b4510c3045d164e8558a523be2d72074f/R/stanWplot.R#L62>
and here
<https://github.com/cdriveraus/ctsem/blob/9559413b4510c3045d164e8558a523be2d72074f/R/stanWplot.R#L42>
.
As brought up by Jonah here
<https://discourse.mc-stan.org/t/ctstanfit-printing-infinite-error/32569>,
the below code does NOT produce the same error pattern
library(rstan)
code <- "
parameters {
real x;
}
model {
x ~ normal(0, 1);
}
"
fit <- stan(model_code = code)
Any help is appreciated. Thanks in advance!
—
Reply to this email directly, view it on GitHub
<#52>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7LCBM3LHREHZ6Z6C4PBC3XX2HZNANCNFSM6AAAAAA4DYA4IM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Mac OS. This is the full function call
|
Ok. I probably have to find an alternative to that function if it's not
generally available on macOS. To avoid the error just disable the plot
output when using sampling - with optimisation it will still work fine.
…On Wed, 30 Aug 2023, 03:24 phvv, ***@***.***> wrote:
Mac OS. This is the full function call
ctStanFit( datalong = cswim1,
ctstanmodel = m1,
iter = 2
optimize = FALSE,
intoverstates = TRUE,
algorithm = "NUTS",
nopriors = FALSE,
chains = 4,
cores = 4,
fit = TRUE,
plot=TRUE
)
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7LCBPSYZNKHQSG4N2RMD3XX2I3DANCNFSM6AAAAAA4DYA4IM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Will do. Thanks for the help! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running ctStanFit to receive a Bayesian estimation via Stan’s NUTS sampler. An error message is infinite loop printing while doing so. This doesn’t seem to be interfering with the underlying computation as the function appears to run to completion (albeit probably slower). The error is
sh: findstr: command not found
From a quick search of the codebase, there doesn't appear to be many instances of the
findstr
function. Just here and here.As brought up by Jonah here, the below code does NOT produce the same error pattern
Any help is appreciated. Thanks in advance!
The text was updated successfully, but these errors were encountered: