Commit e85677b
authored
More bugfixes for statespace (#346)
* Allow forward sampling of statespace models in JAX mode
Explicitly set data shape to avoid broadcasting error
Better handling of measurement error dims in `SARIMAX` models
Freeze auxiliary models before forward sampling
Bugfixes for posterior predictive sampling helpers
Allow specification of time dimension name when registering data
Save info about exogenous data for post-estimation tasks
Restore `_exog_data_info` member variable
Be more consistent with the names of filter outputs
* Adjust test suite to reflect API changes
Modify structural tests to accommodate deterministic models
Save kalman filter outputs to idata for statespace tests
Remove test related to `add_exogenous`
Adjust structural module tests
* Add JAX test suite
* Bug-fixes and changes to statespace distributions
Remove tests related to the `add_exogenous` method
Add dummy `MvNormalSVDRV` for forward jax sampling with `method="SVD"`
Dynamically generate `LinearGaussianStateSpaceRV` signature from inputs
Add signature and simple test for `SequenceMvNormal`
* Re-run example notebooks
* Add helper function to sample prior/posterior statespace matrices
* fix tests
* Wrap jax MvNormal rewrite in try/except block
* Don't use `action` keyword in `catch_warnings`
* Skip JAX test if `numpyro` is not installed
* Handle batch dims on `SequenceMvNormal`
* Remove unused batch_dim logic in SequenceMvNormal
* Restore `get_support_shape_1d` import1 parent 51704bd commit e85677b
File tree
18 files changed
+2090
-1684
lines changed- notebooks
- pymc_experimental
- statespace
- core
- filters
- models
- utils
- tests/statespace
- utilities
18 files changed
+2090
-1684
lines changedLarge diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
155 | 172 | | |
156 | 173 | | |
157 | 174 | | |
| |||
206 | 223 | | |
207 | 224 | | |
208 | 225 | | |
209 | | - | |
| 226 | + | |
210 | 227 | | |
211 | 228 | | |
212 | 229 | | |
213 | 230 | | |
214 | 231 | | |
215 | 232 | | |
216 | | - | |
| 233 | + | |
| 234 | + | |
217 | 235 | | |
218 | | - | |
| 236 | + | |
219 | 237 | | |
220 | 238 | | |
221 | 239 | | |
| |||
229 | 247 | | |
230 | 248 | | |
231 | 249 | | |
232 | | - | |
| 250 | + | |
233 | 251 | | |
234 | 252 | | |
235 | 253 | | |
| |||
389 | 407 | | |
390 | 408 | | |
391 | 409 | | |
392 | | - | |
| 410 | + | |
393 | 411 | | |
394 | 412 | | |
395 | 413 | | |
| |||
416 | 434 | | |
417 | 435 | | |
418 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
0 commit comments