Render `_s*` model plots at expected variability + per-sample NDT
Alexander+1: Claude Opus 4.7 (1M context)
ecf42d4
The cartoon and trajectory plots for DDM variants with random across-trial
parameters (ddm_sdv, ddm_st, ddm_truncnormt, ddm_rayleight) were showing
misleading information:
1. The noiseless "model cartoon" line rendered at slope `v + epsilon` for
one random epsilon ~ Normal(0, sv) instead of the deterministic skeleton
at slope `v`. Reason: ssm-simulators `no_noise=True` only zeros Brownian
noise, not across-trial variability draws.
2. Sample trajectories all started at the input `t` even when each actual
per-sample NDT was drawn from a random distribution (Uniform/TruncNorm/
Rayleigh). Reason: simulator metadata records the input `t`, not the
per-sample NDT actually drawn from `t_dist`.
GUI-side fixes:
- `_VARIABILITY_COLLAPSE` overrides each `_s*` model's variability params
before the cartoon-only simulator call.
- `_EXPECTED_T_POST_SHIFT` post-adjusts `metadata['t']` for distributions
whose param=0 collapse != expectation (ddm_rayleight: st * sqrt(pi/2)).
- `_…
initial test
Alexander
36bf2f6
Duplicate from streamlit/streamlit-template-space