Repository: lnccbrown/HSSM · Tag: v0.4.0 · Commit: e6f51e1 · Released by: krishnbera
We're excited to announce HSSM 0.4.0, a major release that makes HSSM a more capable home for Bayesian computational modeling, from hierarchical response-time models to reinforcement-learning,
attention, multi-choice, and choice-only workflows.
This release adds a first-class RLSSM interface, introduces attentional DDM support, expands choice-only and multi-choice modeling, modernizes HSSM for the PyMC 6 ecosystem, and brings a substantial
refresh of tutorials and documentation. Whether you are modeling learning across trials, fitting gaze-conditioned decisions, comparing multi-alternative choice models, or building custom likelihood
workflows, HSSM 0.4.0 offers a stronger and more extensible foundation.
Install or upgrade directly from PyPI:
pip install -U hssm
# or
uv add hssmHSSM 0.4.0 supports Python 3.12 through 3.14.
The centerpiece of HSSM 0.4.0 is a public RLSSM (https://lnccbrown.github.io/HSSM/api/rl/) interface for fitting reinforcement-learning sequential-sampling models. It connects a trial-by-trial learning
process, such as value updating, with an evidence-accumulation decision process inside HSSM's familiar Bayesian modeling workflow.
The new RLSSM tooling includes:
To get started, see the RLSSM basic tutorial (https://lnccbrown.github.io/HSSM/tutorials/rlssm_basic/), then explore custom models with ssms.rl
(https://lnccbrown.github.io/HSSM/tutorials/rlssm_advanced/), restless-learner models (https://lnccbrown.github.io/HSSM/tutorials/rlssm_restless_learner/), and custom model registration
(https://lnccbrown.github.io/HSSM/tutorials/rlssm_hssm_custom_models/).
Many learning experiments record choices without response times. HSSM now supports choice-only RL models, allowing users to model learning-driven choice probabilities directly when RT data are
unavailable or outside the scope of the research question.
This broadens the RLSSM workflow to tasks where choices are the primary outcome, including multi-option learning problems and softmax-style decision rules.
See the choice-only RLSSM tutorial (https://lnccbrown.github.io/HSSM/tutorials/choice_only_rlssm/) and the underlying choice-only models guide
(https://lnccbrown.github.io/HSSM/tutorials/choice_only_models/).
HSSM 0.4.0 adds support for the attentional Drift Diffusion Model (aDDM) through hssm.aDDM and aDDMConfig.
The new aDDM workflow is designed for researchers working with gaze, attention, and value-based choice. It supports:
This makes it easier to connect fixation data to Bayesian decision-modeling workflows without leaving HSSM.
HSSM 0.4.0 adds analytical support for the four-choice Linear Ballistic Accumulator (LBA4) model.
The LBA4 likelihood has been ported to JAX, enabling JAX/NumPyro-compatible sampling and gradients for the analytical four-choice LBA model. This extends HSSM's support for multi-alternative decisions
and gives users a practical analytical option for four-way choice-and-response-time data.
Hierarchical models often benefit from different parameterizations for different parameters. HSSM now supports per-parameter centered and non-centered parameterization.
For example:
hssm.HSSM(..., noncentered={"v": False, "a": True})
Group-term priors can also define their own noncentered setting. This gives users more control over sampler geometry and can improve model stability in hierarchical workflows.
HSSM now aligns with the current Bayesian Python ecosystem:
This upgrade brings HSSM forward with the tools users increasingly rely on while retaining its focus on accessible hierarchical SSM modeling.
The PyMC 6 migration touches sampling, variational inference, posterior predictive workflows, plotting, tutorials, and internal likelihood infrastructure.
For users developing custom models and likelihoods, HSSM continues to support JAX and ONNX-based workflows, with improved integrations across the ecosystem.
This release includes updates around:
See the custom likelihood workflow (https://lnccbrown.github.io/HSSM/tutorials/blackbox_contribution_onnx_example/) and sbi NRE integration tutorial
(https://lnccbrown.github.io/HSSM/tutorials/sbi_nre_integration/).
This release adds and refreshes learning material throughout the documentation, including:
The goal is to make HSSM easier to approach for new users while giving advanced users clearer paths for custom model development.
HSSM 0.4.0 includes breaking changes. Please review these before upgrading:
See the full changelog (https://lnccbrown.github.io/HSSM/changelog/) and installation guide (https://lnccbrown.github.io/HSSM/getting_started/installation/) for details.
HSSM 0.4.0 also includes a broad set of fixes and infrastructure improvements:
Thank you to the contributors, reviewers, and users who helped shape this release.
We're looking forward to seeing what you build with HSSM 0.4.0.
—This release has 2 assets:
Visit the release page to download them.
—
You are receiving this because you are watching this repository.
View it on GitHub or unsubscribe from all notifications for this repository.![]()