-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
Summary
Add a name: str parameter to PymcStateSpace so multiple independent state-space models can coexist in a single PyMC model without name collisions.
Motivation
- Many real problems combine several latent processes (e.g., multiple subjects, multiple modalities, etc.).
- Currently, internal RV/graph names collide; a
namekwarg scopes internal variables and allows clean composition.
Proposed API
ssm = PymcStateSpace(
...,
name="vision", # optional, defaults to existing behavior if omitted
)- When
nameis provided, internal RVs/coordinates are prefixed/namespaced accordingly. - When omitted, behavior is 100% backward compatible.
Docs / Example
- Docstring update for
PymcStateSpaceparameters.
Performance / Risks
- Negligible performance impact (string prefixing only).
- No breaking changes expected.
Reference implementation
- Fork/branch: https://github.com/opherdonchin/pymc-extras
- Happy to open a PR if maintainers approve the direction.
Questions for maintainers
- Any preferred naming convention for namespacing (e.g.,
{name}::varvs{name}_var)?
AlexAndorra and Dekermanjian