Commit 096471e
committed
Add predictive_posterior output to filter/smoother
Extended core filter/smoother functions and model base classes to compute and return predictive_posterior (one-step-ahead predicted state probabilities over state bins). Updated xarray dataset conversion and output handling to include predictive_posterior. Adjusted tests to verify presence and correctness of predictive_posterior in results.1 parent fb5da73 commit 096471e
File tree
4 files changed
+85
-9
lines changed- src/non_local_detector
- models
- tests
- core
- models
4 files changed
+85
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
267 | 274 | | |
268 | 275 | | |
269 | 276 | | |
| |||
302 | 309 | | |
303 | 310 | | |
304 | 311 | | |
| 312 | + | |
| 313 | + | |
305 | 314 | | |
306 | 315 | | |
| 316 | + | |
307 | 317 | | |
308 | 318 | | |
309 | 319 | | |
| |||
394 | 404 | | |
395 | 405 | | |
396 | 406 | | |
| 407 | + | |
397 | 408 | | |
398 | 409 | | |
399 | 410 | | |
| |||
403 | 414 | | |
404 | 415 | | |
405 | 416 | | |
| 417 | + | |
406 | 418 | | |
407 | 419 | | |
408 | 420 | | |
| |||
439 | 451 | | |
440 | 452 | | |
441 | 453 | | |
| 454 | + | |
442 | 455 | | |
443 | 456 | | |
444 | 457 | | |
| |||
751 | 764 | | |
752 | 765 | | |
753 | 766 | | |
754 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
755 | 775 | | |
756 | 776 | | |
757 | 777 | | |
| |||
790 | 810 | | |
791 | 811 | | |
792 | 812 | | |
| 813 | + | |
| 814 | + | |
793 | 815 | | |
794 | 816 | | |
| 817 | + | |
795 | 818 | | |
796 | 819 | | |
797 | 820 | | |
| |||
893 | 916 | | |
894 | 917 | | |
895 | 918 | | |
| 919 | + | |
896 | 920 | | |
897 | 921 | | |
898 | 922 | | |
| |||
902 | 926 | | |
903 | 927 | | |
904 | 928 | | |
| 929 | + | |
905 | 930 | | |
906 | 931 | | |
907 | 932 | | |
| |||
946 | 971 | | |
947 | 972 | | |
948 | 973 | | |
| 974 | + | |
949 | 975 | | |
950 | 976 | | |
951 | 977 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | | - | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1067 | 1074 | | |
1068 | 1075 | | |
1069 | 1076 | | |
| |||
1092 | 1099 | | |
1093 | 1100 | | |
1094 | 1101 | | |
| 1102 | + | |
1095 | 1103 | | |
1096 | 1104 | | |
1097 | 1105 | | |
| |||
1549 | 1557 | | |
1550 | 1558 | | |
1551 | 1559 | | |
| 1560 | + | |
1552 | 1561 | | |
1553 | 1562 | | |
1554 | 1563 | | |
| |||
1571 | 1580 | | |
1572 | 1581 | | |
1573 | 1582 | | |
| 1583 | + | |
| 1584 | + | |
1574 | 1585 | | |
1575 | 1586 | | |
1576 | 1587 | | |
| |||
1698 | 1709 | | |
1699 | 1710 | | |
1700 | 1711 | | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
1701 | 1720 | | |
1702 | 1721 | | |
1703 | 1722 | | |
| |||
2256 | 2275 | | |
2257 | 2276 | | |
2258 | 2277 | | |
2259 | | - | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
2260 | 2281 | | |
2261 | 2282 | | |
2262 | 2283 | | |
| |||
2351 | 2372 | | |
2352 | 2373 | | |
2353 | 2374 | | |
| 2375 | + | |
2354 | 2376 | | |
2355 | 2377 | | |
2356 | 2378 | | |
| |||
2383 | 2405 | | |
2384 | 2406 | | |
2385 | 2407 | | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
2386 | 2411 | | |
2387 | 2412 | | |
2388 | 2413 | | |
| |||
3029 | 3054 | | |
3030 | 3055 | | |
3031 | 3056 | | |
| 3057 | + | |
3032 | 3058 | | |
3033 | 3059 | | |
3034 | 3060 | | |
| |||
3060 | 3086 | | |
3061 | 3087 | | |
3062 | 3088 | | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
3063 | 3092 | | |
3064 | 3093 | | |
3065 | 3094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
214 | | - | |
| 218 | + | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
| |||
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
| 258 | + | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
| |||
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
| 294 | + | |
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| |||
330 | 336 | | |
331 | 337 | | |
332 | 338 | | |
| 339 | + | |
333 | 340 | | |
334 | 341 | | |
335 | 342 | | |
| |||
369 | 376 | | |
370 | 377 | | |
371 | 378 | | |
| 379 | + | |
372 | 380 | | |
373 | 381 | | |
374 | 382 | | |
| |||
390 | 398 | | |
391 | 399 | | |
392 | 400 | | |
| 401 | + | |
393 | 402 | | |
394 | 403 | | |
395 | 404 | | |
| |||
459 | 468 | | |
460 | 469 | | |
461 | 470 | | |
| 471 | + | |
462 | 472 | | |
463 | 473 | | |
464 | 474 | | |
| |||
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
| |||
173 | 182 | | |
174 | 183 | | |
175 | 184 | | |
| 185 | + | |
176 | 186 | | |
177 | 187 | | |
178 | 188 | | |
| |||
195 | 205 | | |
196 | 206 | | |
197 | 207 | | |
| 208 | + | |
198 | 209 | | |
199 | 210 | | |
200 | 211 | | |
| |||
0 commit comments