stan-dev / stan-dev/cmdstan

diagnose counting warmup draws

Open
#948 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
238
Forks
106
Avg merge
2h 29m
Merged PRs (30d)
6

Description

Summary:
make examples/bernoulli/bernoulli
examples/bernoulli/bernoulli sample save_warmup=1 data file=examples/bernoulli/bernoulli.data.R output file=output.csv

Edit output.csv and add a divergence to the post warmup samples. (here's one: output.csv.txt)

bin/diagnose output.csv

The output will include:

Checking sampler transitions for divergences.
1 of 2000 (0.05%) transitions ended with a divergence.

There is 1 divergence (we added it -- there should be a bunch during warmup), but there are only 1000 post warmup draws.

Current Version:

v2.25.0

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

Run the documented bernoulli build and sampling commands, edit output.csv with the supplied divergence, and execute bin/diagnose output.csv. Trace how bin/diagnose counts transitions and post-warmup draws; done means the report handles warmup divergences consistently and reports the expected post-warmup count.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.