8000 Fix observation_matrices shape in square-root filter docstrings by M-Colley · Pull Request #227 · pykalman/pykalman · GitHub
[go: up one dir, main page]

Skip to content

Fix observation_matrices shape in square-root filter docstrings - #227

Open
M-Colley wants to merge 1 commit into
pykalman:mainfrom
M-Colley:fix/issue-81-observation-matrices-doc
Open

M-Colley wants to merge 1 commit into
pykalman:mainfrom
M-Colley:fix/issue-81-observation-matrices-doc

Conversation

@M-Colley
@M-Colley M-Colley commented Dec 2, 2026
Copy link
Copy Markdown

Docstrings for BiermanKalmanFilter, CholeskyKalmanFilter, and their square-root helper functions listed observation_matrices with shape [n_timesteps, n_dim_obs, n_dim_obs] or [n_dim_obs, n_dim_obs]. However, the observation equation z_t = C_t x_t + d_t maps hidden states of dimension n_dim_state to observations of dimension n_dim_obs. Fixes #81.

This change updates all six observation_matrices and observation_matrices2 docstring shape entries in pykalman/sqrt/bierman.py and pykalman/sqrt/cholesky.py to [n_timesteps, n_dim_obs, n_dim_state] or [n_dim_obs, n_dim_state].

Verified with python -m pytest pykalman -o addopts= -W default (41 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.

Wrong Dimensions in Doc

1 participant

0