stan-dev / stan-dev/rstan

read_stan_csv() can't handle output from cmdstan optimize

Open
#123 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.1k
Forks
266
Avg merge
2h 56m
Merged PRs (30d)
1

Description

I have a model that I run from CmdStan:

./mymodel optimize data file=tmp.r output file=output.csv

And then in R:

opt = read_stan_csv("output.csv")

Gives:

Error in all_int_eq(warmup) : not all are integers
In addition: Warning message:
In FUN(X[[1L]], ...) : line with "Elapsed Time" not found

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the read_stan_csv() entry point and reproduce the issue with the shown CmdStan optimize command and output.csv. Inspect how optimize output is handled around the missing "Elapsed Time" line and warmup parsing. Done means read_stan_csv("output.csv") can parse this output without the reported error or warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.