flatironinstitute / mcmc-monitor

Monitor MCMC runs in the browser
Other
35 stars 0 forks source link

Provide special case for `divergent__` variable #101

Open jsoules opened 1 year ago

jsoules commented 1 year ago

As described in section 15.5 of the Stan documentation, on divergent transitions, the divergent__ system variable is actually a flag indicating draws which encountered a divergent transition in the HMC trajectory simulation. Plotting its {0, 1} values is not very useful to users.

Instead, it would be better to use this flag to identify points on other plots where divergence occurs. (Per the same doc, similar functionality exists in ShinyStan currently).

To resolve this feature request, change the behavior of ticking the divergent__ variable in the variable-selection area so that it applies a new highlight color to points on other graphs, on the the Trace Plots and Scatterplots tabs.

(Requested/suggested by @mitzimorris)