Skip to content

Release 0.6.1: input-scale warning, fixable static-choice lapse - #9

Merged
Gilles86 merged 1 commit into
mainfrom
release-0.6.1
Nov 14, 2026
Merged

Gilles86 merged 1 commit into
mainfrom
release-0.6.1

Conversation

@Gilles86

Copy link
Copy Markdown
Contributor
  • Input-scale warning. build_estimation_model warns when x2 - x1 (Psychophysical*) or a continuous regressor (any *RegressionModel) has a typical scale outside input_scale_range (default 0.2–5). The default HalfNormal(0.25) group-SD prior assumes order-1 parameters; with ~13 subjects it is not overruled by the data, so inputs of ~10³ shrink every subject onto the group mean and inputs of ~10⁻³ give no shrinkage at all. Silence with warn_on_input_scale = False. Log-space magnitude/risk models are unaffected.
  • Docs: new "Scale your inputs to order 1" section in docs/concepts.rst (standardize, fit, rescale back; per task when comparing tasks).
  • Fixable static-choice lapse (supersedes Allow fixing the static choice lapse (p_lapse) to a scalar #4, re-applied on the current LapseModel): model.p_lapse = 0.05 fixes the lapse rate instead of sampling it; validated to [0, 1); setting it on an instance refreshes free_parameters. Default None unchanged.
  • Version 0.6.1; HISTORY / CHANGELOG / CITATION updated. Full test suite passed locally (168) before the lapse change; lapse + scale tests pass after.

🤖 Generated with Claude Code

- build_estimation_model warns when x2 - x1 (Psychophysical*) or a continuous
  regressor (*RegressionModel) is far from order 1 (input_scale_range, default
  0.2-5). The default HalfNormal(0.25) group-SD prior otherwise gives
  near-total shrinkage (raw units ~10^3) or none (~10^-3). Silence with
  warn_on_input_scale = False.
- Docs: "Scale your inputs to order 1" section in concepts.rst.
- LapseModel.p_lapse: a float fixes the lapse rate (not sampled), mirroring the
  DDM/RDM p_outlier API; None (default) keeps the hierarchical lapse.
  Supersedes #4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gilles86
Gilles86 merged commit cfa64ab into main Nov 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant