stan-dev / stan-dev/stan

Provide access to initial values

Open
#2,950 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature i/o
Dominant language
C++
Stars
2.8k
Forks
388
Avg merge
2d 17h
Merged PRs (30d)
15

Description

We've recently discussed how CmdStan does not have a way to provide users access to the initial values it used:

It sounds like this is actually an io/services issue because the contents of a stan::io::var_context object would need to be dumped to text. Is that right?

I don't know how difficult this would be, but to me providing access to this information seems pretty important.

The most important information to convey to users I think would be inits for parameters on the constrained scale. Transformed parameters, generated quantities, and the unconstrained scale, are potentially useful but not as high of a priority.

Contributor guide

Open the contributing guide

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 by reading the linked CmdStan issue and Discourse discussion, then inspect the stan::io::var_context handling described in this issue. The work is complete when users can access the initial parameter values on the constrained scale; support for transformed parameters, generated quantities, and the unconstrained scale is lower priority.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.