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
name kwarg scopes internal variables and allows clean composition.
Proposed API
ssm = PymcStateSpace(
...,
name="vision", # optional, defaults to existing behavior if omitted
)
- When
name is provided, internal RVs/coordinates are prefixed/namespaced accordingly.
- When omitted, behavior is 100% backward compatible.
Docs / Example
- Docstring update for
PymcStateSpace parameters.
Performance / Risks
- Negligible performance impact (string prefixing only).
- No breaking changes expected.
Reference implementation
Questions for maintainers
- Any preferred naming convention for namespacing (e.g.,
{name}::var vs {name}_var)?
Summary
Add a
name: strparameter toPymcStateSpaceso multiple independent state-space models can coexist in a single PyMC model without name collisions.Motivation
namekwarg scopes internal variables and allows clean composition.Proposed API
nameis provided, internal RVs/coordinates are prefixed/namespaced accordingly.Docs / Example
PymcStateSpaceparameters.Performance / Risks
Reference implementation
Questions for maintainers
{name}::varvs{name}_var)?