Repository navigation
Release 0.6.1: input-scale warning, fixable static-choice lapse - #9
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
build_estimation_modelwarns whenx2 - x1(Psychophysical*) or a continuous regressor (any*RegressionModel) has a typical scale outsideinput_scale_range(default 0.2–5). The defaultHalfNormal(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 withwarn_on_input_scale = False. Log-space magnitude/risk models are unaffected.docs/concepts.rst(standardize, fit, rescale back; per task when comparing tasks).LapseModel):model.p_lapse = 0.05fixes the lapse rate instead of sampling it; validated to [0, 1); setting it on an instance refreshesfree_parameters. DefaultNoneunchanged.🤖 Generated with Claude Code