multimodalsrm 0.2.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. multimodalsrm-0.3.1/CHANGELOG.md +474 -0
  2. {multimodalsrm-0.2.0/src/multimodalsrm.egg-info → multimodalsrm-0.3.1}/PKG-INFO +8 -4
  3. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/README.md +7 -3
  4. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/api/configuration.md +10 -1
  5. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/api/data-results.md +120 -0
  6. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/api/estimators.md +324 -14
  7. multimodalsrm-0.3.1/docs/api/responses.md +588 -0
  8. multimodalsrm-0.3.1/docs/api-guide.md +382 -0
  9. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/capabilities.md +11 -1
  10. multimodalsrm-0.3.1/docs/changelog.md +476 -0
  11. multimodalsrm-0.3.1/docs/concepts.md +85 -0
  12. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/getting-started.md +4 -4
  13. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/grouped-state-space.md +4 -0
  14. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/index.md +2 -2
  15. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/model-mathematics.md +93 -2
  16. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-gaussian-followup.md +191 -0
  17. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-gaussian-orders.json +555 -0
  18. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-map-baseline-results.json +717 -0
  19. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-map-baseline.md +153 -0
  20. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-next-optimizations.md +344 -0
  21. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-next-results.json +1372 -0
  22. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-parallel-scaling-results.json +2395 -0
  23. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-parallel-scaling.md +218 -0
  24. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-response-bound-sensitivity-results.json +1226 -0
  25. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-response-bound-sensitivity.md +183 -0
  26. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-response-candidates-results.json +156 -0
  27. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-response-candidates.md +145 -0
  28. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-response-holdout-results.json +1430 -0
  29. multimodalsrm-0.3.1/docs/performance/2026-09-22-gp-response-holdout.md +244 -0
  30. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-block-filter-results.json +3557 -0
  31. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-block-filter.md +182 -0
  32. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-clock-calibration-results.json +2873 -0
  33. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-clock-calibration.md +140 -0
  34. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-clock-preserved-fits.md +240 -0
  35. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-clock-preserved-results.json +931 -0
  36. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-expanded-response-fits.md +217 -0
  37. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-expanded-response-results.json +1065 -0
  38. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-grouped-prediction-results.json +340 -0
  39. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-grouped-prediction.md +134 -0
  40. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-temporal-refit-results.json +3785 -0
  41. multimodalsrm-0.3.1/docs/performance/2026-09-23-gp-temporal-refits.md +319 -0
  42. multimodalsrm-0.3.1/docs/performance/gp-response-research.md +90 -0
  43. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/temporal-kernels.md +17 -7
  44. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/testing.md +15 -0
  45. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/tutorials.md +26 -0
  46. multimodalsrm-0.3.1/examples/gp_frequency_domain.py +101 -0
  47. multimodalsrm-0.3.1/examples/r_frequency_domain.py +93 -0
  48. multimodalsrm-0.3.1/scripts/audit_gp_empirical_clocks.py +108 -0
  49. multimodalsrm-0.3.1/scripts/benchmark_gp_gaussian_compile.py +99 -0
  50. multimodalsrm-0.3.1/scripts/benchmark_gp_grouped_prediction.py +206 -0
  51. multimodalsrm-0.3.1/scripts/benchmark_gp_parallel_filter.py +319 -0
  52. multimodalsrm-0.3.1/scripts/benchmark_gp_response_candidates.py +210 -0
  53. multimodalsrm-0.3.1/scripts/benchmark_gp_response_holdout_parallel.py +110 -0
  54. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/build_api_reference.py +13 -1
  55. multimodalsrm-0.3.1/scripts/check_gp_empirical_predictions.py +90 -0
  56. multimodalsrm-0.3.1/scripts/check_gp_parallel_numerics.py +117 -0
  57. multimodalsrm-0.3.1/scripts/check_gp_response_baseline.py +142 -0
  58. multimodalsrm-0.3.1/scripts/check_gp_response_holdout.py +82 -0
  59. multimodalsrm-0.3.1/scripts/check_gp_temporal_calibration.py +137 -0
  60. multimodalsrm-0.3.1/scripts/check_gp_transition_reuse.py +101 -0
  61. multimodalsrm-0.3.1/scripts/clock_preserving_emo_data.py +88 -0
  62. multimodalsrm-0.3.1/scripts/collect_gp_response_starts.py +90 -0
  63. multimodalsrm-0.3.1/scripts/compare_gp_response_families.py +346 -0
  64. multimodalsrm-0.3.1/scripts/diagnose_gp_response_calibration.py +214 -0
  65. multimodalsrm-0.3.1/scripts/fit_gp_response_baseline.py +222 -0
  66. multimodalsrm-0.3.1/scripts/gp_block_filter.py +167 -0
  67. multimodalsrm-0.3.1/scripts/gp_response_candidates.py +160 -0
  68. multimodalsrm-0.3.1/scripts/gp_response_holdout.py +244 -0
  69. multimodalsrm-0.3.1/scripts/investigate_gp_response_bounds.py +377 -0
  70. multimodalsrm-0.3.1/scripts/probe_gp_calibration_sensitivity.py +116 -0
  71. multimodalsrm-0.3.1/scripts/probe_gp_correlated_noise.py +173 -0
  72. multimodalsrm-0.3.1/scripts/qualify_gp_block_filter.py +199 -0
  73. multimodalsrm-0.3.1/scripts/qualify_gp_gaussian_map_orders.py +155 -0
  74. multimodalsrm-0.3.1/scripts/qualify_gp_gaussian_orders.py +100 -0
  75. multimodalsrm-0.3.1/scripts/qualify_gp_parallel_scaling.py +215 -0
  76. multimodalsrm-0.3.1/scripts/refit_gp_temporal_calibration.py +276 -0
  77. multimodalsrm-0.3.1/scripts/run_model_tests.py +171 -0
  78. multimodalsrm-0.3.1/scripts/score_gp_temporal_calibration.py +309 -0
  79. multimodalsrm-0.3.1/scripts/select_gp_temporal_calibration.py +96 -0
  80. multimodalsrm-0.3.1/scripts/summarize_gp_block_filter.py +90 -0
  81. multimodalsrm-0.3.1/scripts/summarize_gp_calibration.py +135 -0
  82. multimodalsrm-0.3.1/scripts/summarize_gp_parallel_scaling.py +274 -0
  83. multimodalsrm-0.3.1/scripts/summarize_gp_response_holdout.py +239 -0
  84. multimodalsrm-0.3.1/scripts/summarize_gp_temporal_calibration.py +487 -0
  85. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/__init__.py +8 -0
  86. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_observation_preparation.py +66 -9
  87. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_version.py +1 -1
  88. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/__init__.py +7 -1
  89. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/_archive.py +1 -0
  90. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/baselines.py +7 -9
  91. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/fitting.py +36 -1
  92. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/grouped.py +12 -11
  93. multimodalsrm-0.3.1/src/multimodalsrm/bayesian/grouped_prediction.py +150 -0
  94. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/grouped_score.py +9 -7
  95. multimodalsrm-0.3.1/src/multimodalsrm/bayesian/laplace.py +221 -0
  96. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/map_conditioning.py +4 -2
  97. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/model.py +162 -13
  98. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/multifactor.py +18 -16
  99. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/multifactor_cholesky.py +5 -5
  100. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/multifactor_score.py +3 -3
  101. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/noise_profile.py +31 -10
  102. multimodalsrm-0.3.1/src/multimodalsrm/bayesian/observation_adapter.py +33 -0
  103. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/persistence.py +37 -5
  104. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_participants.py +10 -2
  105. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_persistence.py +9 -0
  106. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_updates.py +15 -3
  107. multimodalsrm-0.3.1/src/multimodalsrm/bayesian/precision_factor.py +236 -0
  108. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/prediction.py +42 -39
  109. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/priors.py +18 -0
  110. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/problem.py +9 -2
  111. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/quality.py +11 -8
  112. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/r_initialization.py +5 -0
  113. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/reference.py +42 -3
  114. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/response_quadrature.py +62 -12
  115. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/temporal_noise.py +16 -12
  116. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/trajectories.py +3 -4
  117. multimodalsrm-0.3.1/src/multimodalsrm/bayesian/whittle.py +890 -0
  118. multimodalsrm-0.3.1/src/multimodalsrm/bayesian/whittle_likelihood.py +499 -0
  119. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/calibration.py +18 -9
  120. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/data.py +17 -0
  121. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/estimator.py +392 -31
  122. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/inference.py +18 -8
  123. multimodalsrm-0.3.1/src/multimodalsrm/inspection.py +296 -0
  124. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/kernel_optimization.py +154 -12
  125. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/kernels.py +11 -3
  126. multimodalsrm-0.3.1/src/multimodalsrm/lags.py +428 -0
  127. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/objective.py +61 -7
  128. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/operators.py +64 -30
  129. multimodalsrm-0.3.1/src/multimodalsrm/spectral.py +766 -0
  130. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1/src/multimodalsrm.egg-info}/PKG-INFO +8 -4
  131. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/SOURCES.txt +91 -0
  132. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_map_conditioning.py +4 -1
  133. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_mixed_responses.py +37 -0
  134. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_model.py +7 -0
  135. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_refinement.py +1 -1
  136. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_optional_conventions.py +14 -5
  137. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_updates.py +3 -0
  138. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_prediction.py +1 -1
  139. multimodalsrm-0.3.1/tests/bayesian/test_bayesian_quadrature_stack.py +62 -0
  140. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_r_initialization.py +2 -1
  141. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_transform.py +4 -1
  142. multimodalsrm-0.3.1/tests/bayesian/test_bayesian_whittle.py +485 -0
  143. multimodalsrm-0.3.1/tests/bayesian/test_capacity_and_gradient_gate.py +161 -0
  144. multimodalsrm-0.3.1/tests/bayesian/test_edge_observations.py +186 -0
  145. multimodalsrm-0.3.1/tests/bayesian/test_grouped_factor_stability.py +221 -0
  146. multimodalsrm-0.3.1/tests/bayesian/test_grouped_prediction.py +110 -0
  147. multimodalsrm-0.3.1/tests/bayesian/test_laplace_lag_uncertainty.py +289 -0
  148. multimodalsrm-0.3.1/tests/bayesian/test_response_quadrature_symmetry.py +173 -0
  149. multimodalsrm-0.3.1/tests/bayesian/test_timing_report.py +174 -0
  150. multimodalsrm-0.3.1/tests/core/test_edge_observations.py +212 -0
  151. multimodalsrm-0.3.1/tests/core/test_factor_report.py +148 -0
  152. multimodalsrm-0.3.1/tests/core/test_kernel_step_stopping.py +148 -0
  153. multimodalsrm-0.3.1/tests/core/test_lags.py +328 -0
  154. multimodalsrm-0.3.1/tests/core/test_latent_timescale.py +145 -0
  155. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_components.py +2 -0
  156. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_fit.py +42 -1
  157. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_kernel_acceleration.py +32 -1
  158. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_optimization.py +1 -1
  159. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_selection.py +3 -1
  160. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_observation_preparation.py +13 -0
  161. multimodalsrm-0.3.1/tests/core/test_operator_vectorization.py +101 -0
  162. multimodalsrm-0.3.1/tests/core/test_response_bounds.py +145 -0
  163. multimodalsrm-0.3.1/tests/core/test_response_penalty_scaling.py +228 -0
  164. multimodalsrm-0.3.1/tests/core/test_spectral.py +358 -0
  165. multimodalsrm-0.3.1/tests/core/test_spectral_families.py +76 -0
  166. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_sharding.py +38 -0
  167. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/smoke-tests.json +7 -1
  168. multimodalsrm-0.3.1/tests/test-durations.json +121 -0
  169. multimodalsrm-0.2.0/CHANGELOG.md +0 -109
  170. multimodalsrm-0.2.0/docs/api/responses.md +0 -342
  171. multimodalsrm-0.2.0/docs/api-guide.md +0 -156
  172. multimodalsrm-0.2.0/docs/changelog.md +0 -111
  173. multimodalsrm-0.2.0/docs/concepts.md +0 -60
  174. multimodalsrm-0.2.0/scripts/run_model_tests.py +0 -82
  175. multimodalsrm-0.2.0/src/multimodalsrm/bayesian/observation_adapter.py +0 -12
  176. multimodalsrm-0.2.0/src/multimodalsrm/inspection.py +0 -167
  177. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/CITATION.cff +0 -0
  178. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/CONTRIBUTING.md +0 -0
  179. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/LICENSE +0 -0
  180. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/MANIFEST.in +0 -0
  181. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/api/evaluation.md +0 -0
  182. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/data.md +0 -0
  183. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/documentation.md +0 -0
  184. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/extraction-validation.json +0 -0
  185. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/figure-provenance.md +0 -0
  186. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/grouped-learned-state-space-results.json +0 -0
  187. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/grouped-state-space-results.json +0 -0
  188. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/migration.md +0 -0
  189. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/model-integration.md +0 -0
  190. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-19-apple-mps-feasibility.md +0 -0
  191. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-21-gp-algorithmic-opportunities.md +0 -0
  192. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-21-gp-speedup-experiments.md +0 -0
  193. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-21-linux-cuda-gpu-opportunities.md +0 -0
  194. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/performance/r-map-initialization-results.json +0 -0
  195. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/performance/r-map-initialization.md +0 -0
  196. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/plans/2026-09-21-distribution-infrastructure.md +0 -0
  197. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/plans/2026-09-21-model-extraction.md +0 -0
  198. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/releasing.md +0 -0
  199. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/scr-responses.md +0 -0
  200. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/superpowers/plans/2026-09-21-post-release-linux-performance-evaluation.md +0 -0
  201. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/docs/test-migration.json +0 -0
  202. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/examples/gp_map_quickstart.py +0 -0
  203. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/examples/r_quickstart.py +0 -0
  204. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/examples/scr_quickstart.py +0 -0
  205. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/model-integration.json +0 -0
  206. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/model-source.json +0 -0
  207. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/pyproject.toml +0 -0
  208. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_loading_collapse.py +0 -0
  209. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_node_filter.py +0 -0
  210. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/benchmark_grouped_state_space.py +0 -0
  211. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/benchmark_r_initialization.py +0 -0
  212. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/build_kernel_figures.py +0 -0
  213. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/check_release.py +0 -0
  214. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/check_test_report.py +0 -0
  215. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/ci_policy.py +0 -0
  216. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/scripts/sync_changelog.py +0 -0
  217. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/setup.cfg +0 -0
  218. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_bateman.py +0 -0
  219. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_parallel.py +0 -0
  220. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/alignment.py +0 -0
  221. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bateman_operators.py +0 -0
  222. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/_backend.py +0 -0
  223. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/blocks.py +0 -0
  224. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/calibration.py +0 -0
  225. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/calibration_archive.py +0 -0
  226. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/calibration_problem.py +0 -0
  227. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/covariance_pairs.py +0 -0
  228. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/diagnostics.py +0 -0
  229. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/environment.py +0 -0
  230. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/execution.py +0 -0
  231. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/factorization.py +0 -0
  232. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/gp_hyperparameters.py +0 -0
  233. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/identity.py +0 -0
  234. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/map_parallel.py +0 -0
  235. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/orientation_diagnostics.py +0 -0
  236. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/orientation_persistence.py +0 -0
  237. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/orthogonal.py +0 -0
  238. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/polishing.py +0 -0
  239. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_coordinates.py +0 -0
  240. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/rank_diagnostics.py +0 -0
  241. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/refinement_coordinates.py +0 -0
  242. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/response_scope.py +0 -0
  243. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/results.py +0 -0
  244. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/spectral.py +0 -0
  245. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space.py +0 -0
  246. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_compact.py +0 -0
  247. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_delays.py +0 -0
  248. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_gaussian.py +0 -0
  249. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_gaussian_rational.py +0 -0
  250. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_grouped.py +0 -0
  251. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_parameters.py +0 -0
  252. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_rational.py +0 -0
  253. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_responses.py +0 -0
  254. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/timing.py +0 -0
  255. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/transform.py +0 -0
  256. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/updated_posterior_persistence.py +0 -0
  257. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/warmup_checkpoint.py +0 -0
  258. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/workflow.py +0 -0
  259. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/grouping.py +0 -0
  260. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/initialization.py +0 -0
  261. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/optimization.py +0 -0
  262. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/posterior_results.py +0 -0
  263. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/results.py +0 -0
  264. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/selection.py +0 -0
  265. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm/validation.py +0 -0
  266. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/dependency_links.txt +0 -0
  267. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/requires.txt +0 -0
  268. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/top_level.txt +0 -0
  269. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/__init__.py +0 -0
  270. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/__init__.py +0 -0
  271. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bateman_scr.py +0 -0
  272. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_analytic_score.py +0 -0
  273. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_bateman_posterior.py +0 -0
  274. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_blocks.py +0 -0
  275. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_calibration.py +0 -0
  276. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_covariance_pairs.py +0 -0
  277. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_diagnostics.py +0 -0
  278. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_environment.py +0 -0
  279. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_factorization.py +0 -0
  280. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_filter_recovery.py +0 -0
  281. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_fit_quality.py +0 -0
  282. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_frozen.py +0 -0
  283. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_gamma_posterior.py +0 -0
  284. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_gp_timescale.py +0 -0
  285. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_grouped.py +0 -0
  286. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_instantaneous.py +0 -0
  287. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_map_parallel.py +0 -0
  288. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor.py +0 -0
  289. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_cpu.py +0 -0
  290. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_posterior.py +0 -0
  291. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_workflow.py +0 -0
  292. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_noise_profile.py +0 -0
  293. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_orientation_diagnostics.py +0 -0
  294. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_orientation_sampling.py +0 -0
  295. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_orthogonal_kernel.py +0 -0
  296. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_parallel.py +0 -0
  297. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_parameter_scaling.py +0 -0
  298. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_persistence.py +0 -0
  299. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_polishing_guard.py +0 -0
  300. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_evidence.py +0 -0
  301. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_participants.py +0 -0
  302. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_persistence.py +0 -0
  303. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_problem.py +0 -0
  304. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_quadrature_accuracy.py +0 -0
  305. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_reference.py +0 -0
  306. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_refinement.py +0 -0
  307. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_residual_diagnostics.py +0 -0
  308. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_run_baselines.py +0 -0
  309. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_sampler_geometry.py +0 -0
  310. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_spectral.py +0 -0
  311. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space.py +0 -0
  312. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_delays.py +0 -0
  313. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_gaussian.py +0 -0
  314. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_parameters.py +0 -0
  315. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_responses.py +0 -0
  316. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_scr.py +0 -0
  317. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_temporal_noise.py +0 -0
  318. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_timing.py +0 -0
  319. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_trajectories.py +0 -0
  320. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_updated_persistence.py +0 -0
  321. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_warmup_checkpoint.py +0 -0
  322. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_workflow.py +0 -0
  323. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_removed_bach_archive.py +0 -0
  324. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_compact_gaussian.py +0 -0
  325. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_delays.py +0 -0
  326. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_gaussian.py +0 -0
  327. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_gaussian_method.py +0 -0
  328. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_grouped.py +0 -0
  329. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_grouped_learned.py +0 -0
  330. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_optional_conventions.py +0 -0
  331. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_parameter_workflows.py +0 -0
  332. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_parameters.py +0 -0
  333. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_rational.py +0 -0
  334. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_responses.py +0 -0
  335. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/__init__.py +0 -0
  336. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_alignment_centering.py +0 -0
  337. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_bateman_scr.py +0 -0
  338. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_gaussian_operator_exact.py +0 -0
  339. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_alignment.py +0 -0
  340. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_calibration.py +0 -0
  341. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_cpu_algebra.py +0 -0
  342. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_inference.py +0 -0
  343. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_initialization.py +0 -0
  344. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_inspection.py +0 -0
  345. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_loading_scaling.py +0 -0
  346. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_parallel.py +0 -0
  347. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_primitives.py +0 -0
  348. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_reproducibility.py +0 -0
  349. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_scale.py +0 -0
  350. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_shared_default.py +0 -0
  351. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_timing.py +0 -0
  352. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_validation.py +0 -0
  353. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_changelog.py +0 -0
  354. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_ci_policy.py +0 -0
  355. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_ci_workflows.py +0 -0
  356. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_model_test_report.py +0 -0
  357. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_package.py +0 -0
  358. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_release_gate.py +0 -0
  359. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/reference/__init__.py +0 -0
  360. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/reference/continuous_covariance.py +0 -0
  361. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/reference/multifactor_fixture.py +0 -0
  362. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/reference/optimization_fixture.py +0 -0
  363. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/reference/participant_conditioning.py +0 -0
  364. {multimodalsrm-0.2.0 → multimodalsrm-0.3.1}/tests/reference/posterior_fixture.py +0 -0
@@ -0,0 +1,474 @@
1
+ # Changelog
2
+
3
+ All notable changes to `multimodalsrm` will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.3.1] — 2026-11-29
11
+
12
+ ### Fixed
13
+
14
+ - **`whittle_estimate(bootstrap=...)` failed on data with masked samples.** The
15
+ simulated datasets the bootstrap refits were built without the recording's
16
+ `TimeSeries` mask, so they no longer matched its layout and the fit stopped
17
+ with "data structure differs from the data the estimator was built with".
18
+ Any masked sample triggered it; data whose missing samples were removed
19
+ outright were unaffected, which is how the tests missed it. Replicates now
20
+ keep the recording's mask and feature columns.
21
+
22
+ ## [0.3.0] — 2026-11-29
23
+
24
+ ### Added
25
+
26
+ - **`whittle_estimate`: fast frequency-domain estimation of shared response timing
27
+ for the GP model.** The exact GP likelihood factorises every run's covariance,
28
+ which limits it to small problems. `multimodalsrm.bayesian.whittle_estimate`
29
+ takes the same `features`, `responses`, `priors` and `length_scale` and
30
+ maximises a likelihood written per frequency, so its cost grows linearly with
31
+ the number of samples. In simulations with 12 participants and 500 s per run a
32
+ two-modality fit with standard errors took 3 to 8 s, and a three-modality fit at
33
+ two sampling rates 64 to 82 s. On complete data (160 datasets) it found no wrong
34
+ optimum, and every estimate lay within 1.13 standard errors of the exact MAP
35
+ where that was computed. The likelihood keeps only the part of the signal that
36
+ is coherent with the latent's own finite-record coefficient; without that, a
37
+ second optimum with inflated loadings and a wide response appears. Response
38
+ families, mixed sampling rates and missing samples are supported, and private
39
+ noise can be white or white plus a slowly varying process per feature
40
+ (`noise="diag_ou"`). `surrogates > 0` tests each estimated modality's coupling
41
+ against phase-randomized surrogates: 15 of 270 uncoupled datasets reached
42
+ `p <= 0.05` (5.6%) and 43 of 43 coupled ones reached the smallest attainable
43
+ p-value. A lag is labelled established only when that test passes and no
44
+ response parameter rests on a bound. A contiguous block of missing samples is
45
+ the weak point: at 30% missing the relative width was biased by +0.16 and its
46
+ Hessian interval covered the truth 30% of the time, so the function warns when
47
+ samples are missing and offers bootstrap standard errors. Validated on
48
+ simulations only. Returns `WhittleResult`; `WhittleEstimator` compiles once for
49
+ repeated datasets and `exact_map` continues to the exact MAP.
50
+
51
+ - **`estimate_responses(model, data)`: shared response kernels estimated in the
52
+ frequency domain.** `MultimodalSRM.fit` estimates responses jointly with the
53
+ latent, so the latent penalty takes part: in simulations with a true difference
54
+ of squared widths of 15 and a fixed reference, `fit` returned 14.7, 13.1 and
55
+ 11.2 as `latent_ridge` went from 0.01 to 1 and `latent_timescale` from 2 to 8 s.
56
+ `estimate_responses` reads each response relative to a fixed reference modality
57
+ from the phase and amplitude of the modalities' shared signals across
58
+ frequencies, with the latent at every frequency left free, and returned 14.9 at
59
+ each of the same settings. Features are modelled directly, so a modality may
60
+ have fewer features than the model has factors: for a one-feature modality with
61
+ a true Gaussian width of 3 it returned 3.06 where `fit` returned 0.3, and for a
62
+ one-feature `Gamma` it recovered shape and scale where `fit` put the shape at its
63
+ bound. Gaussian, Gamma and Identity responses use closed forms and other
64
+ families are transformed numerically; modalities may differ in sampling rate,
65
+ and `noise_bands` lets noise levels differ across frequency bands. Loadings and
66
+ responses are estimated on different halves of each run, because loadings
67
+ fitted under an assumed lag otherwise carry that lag into the estimate when a
68
+ modality is weak. A window mixes neighbouring frequencies, which makes a wide
69
+ response on a short recording look narrower than it is, so each response is
70
+ taken as the part of its windowed signal coherent with the windowed latent:
71
+ width bias for a true width of 4 s fell from −0.11 to −0.04 at 300 s and from
72
+ −0.24 to −0.08 at 200 s, with lags unchanged. With `surrogates > 0` it also
73
+ tests each estimated modality's timing relation to the others against
74
+ phase-randomized surrogates: 131 of 2,400 uncoupled simulation runs reached
75
+ `p <= 0.05` (5.5%, nominal 4.9%), and 78 of 100 coupled runs with 0.5% shared
76
+ variance and 100 of 100 with 1% were detected. Returns `SpectralResponses`, whose
77
+ `fixed_responses(responses)` gives responses to fit with. Validated on
78
+ simulations only; estimated responses must be shared across participants.
79
+ `transfer_function(kernel, omega)` exposes each family's Fourier transform.
80
+
81
+ - **`MultimodalSRM.factor_report()`.** Reports how much of each modality every
82
+ fitted factor explains, to show whether a factor is shared across modalities or
83
+ carried by one of them. It works on the fitted signal (latent passed through the
84
+ response, times loadings), because loading sizes are not comparable across
85
+ modalities whose responses have different gain. The result holds per-factor
86
+ explained variance for each modality and participant, each factor's split
87
+ across modalities, and, with one shared latent, a `specificity` range that does
88
+ not depend on the rotation of the factors. On one recording of facial action
89
+ units and ratings with three factors, two factors could be rotated to be about
90
+ 90% ratings; after smoothing the action units by 3 s two factors were close to
91
+ evenly split. These are training-fit descriptions, not held-out prediction.
92
+
93
+ - **Warning and diagnostic for `MultimodalSRM` fits that stop at response bounds.**
94
+ A response parameter resting at a bound no longer moves, so it passes the
95
+ `kernel_tol` test however steeply the objective still falls outside the bound,
96
+ and `converged_` was true with no further signal. In 66 synthetic fits with free
97
+ `Gamma` responses (eight participants, 300 s, two modalities, known kernels), 63
98
+ reported convergence with at least one response parameter at a bound, 108
99
+ parameters in all, and every one had a gradient pointing out of its range. `fit`
100
+ now warns when a converged fit has such parameters and names them, and
101
+ `optimization_diagnostics_["response_bounds"]` (also in each restart's record)
102
+ lists every parameter at a bound with its value, bounds, gradient, and the
103
+ first-order decrease in the objective from extending the range by its own width;
104
+ a parameter is flagged when that decrease exceeds the stopping tolerance.
105
+ `converged_` keeps its meaning: the bounded problem did converge. Each
106
+ iteration's `kernel_extrapolation` record gains `displacement`, the distance
107
+ actually covered in coordinate units, because `scale` is a multiple of that
108
+ iteration's own response step (up to 4095) and says little once coordinates are
109
+ clipped at bounds.
110
+
111
+ - **`BayesianMultimodalSRM.timing_report(uncertainty="laplace")`.** A MAP fit gave
112
+ lags without any measure of uncertainty. The option adds model-based standard
113
+ errors for each lag relative to the reference modality and for each pairwise lag
114
+ difference, from the inverse Hessian of the negative log posterior at the MAP.
115
+ In a simulation study (three modalities, two factors, 244 parameters) the
116
+ Laplace standard deviation of each lag was 1.01 to 1.04 times that of a Gibbs
117
+ posterior, and 90% intervals contained the true lag 87% and 96% of the time on
118
+ data generated from the model. On deliberately misspecified data they contained
119
+ it 79% and 54% of the time: the errors assume the model is right and are too
120
+ narrow when it is not. Response widths are excluded, because their marginal
121
+ posterior sits far from the MAP. A lag at a bound gets `NaN`, and the report
122
+ states whether the Hessian is positive definite once the factor-rotation
123
+ directions, which are known in closed form, are removed. Off by default; available for MAP fits with
124
+ dense, grouped or state-space algebra and at most 2000 parameters.
125
+ - **`MultimodalSRM(response_penalty_scaling="likelihood")`.** `Response.lag_prior`,
126
+ `Response.prior` and `pooling_strength` were added unscaled to a normalized
127
+ reconstruction loss, which made them far stronger than their stated values: in a
128
+ synthetic fit a `Normal(0, 1)` lag prior shrank a one-second relative delay to
129
+ 0.33 s, and partial pooling at a strength matching the true 0.3 s spread between
130
+ participants removed more than 80% of that spread. The new option multiplies each
131
+ penalty by the factor a Gaussian likelihood over the scored observations implies
132
+ (unit residual variance in standardized units, observations counted as
133
+ independent). The same prior then left the delay at 1.00 s and tightened smoothly
134
+ as its standard deviation fell, and partial pooling kept more than 80% of the
135
+ participant spread. Calibration uses the same scaling. `"objective"` keeps the
136
+ original behaviour.
137
+ - **`edge_observations` on both estimators.** An observation used to be scored
138
+ only if its response support envelope (every lag the bounds allow plus the
139
+ response's full tail) lay inside the run: a fixed `DoubleGamma` scored 18% of a
140
+ 60 s run and a fixed `BatemanSCR` none of it. `"include"` scores every
141
+ observation in the run, like a "same" convolution; `"exclude"` keeps the earlier
142
+ "valid" behaviour. R-MSRM extends each latent grid by the envelope's reach in
143
+ whole grid cells and drops the extension from reported latents; GP-MSRM drops
144
+ the exclusion, which a stationary latent process does not need (dense, grouped
145
+ and state-space algebra; not spectral). On an empirical recording split into a 320 s training run and a
146
+ 184 s test run, the brain rows scored in training rose from 662 to 784 of 784
147
+ with a fixed `DoubleGamma`, and predictable held-out brain rows from 329 to 454.
148
+ - **Lag scan and scan-seeded response lags.** `scan_lags(data)` estimates relative
149
+ modality delays from the observations before fitting, by lagged canonical
150
+ correlation between every pair of modalities, and returns a `LagScan` with
151
+ reliability notes. `LagScan.seed_responses` starts free lags at the scanned delays
152
+ with bounds of that lag ± a margin, and `MultimodalSRM(lag_init="scan")` does both
153
+ at fit time. On synthetic recordings with true relative delays of 2, 5 and 10 s,
154
+ default R-MSRM fits recovered them in 1 of 9 cases with no bound flagged and
155
+ scan-initialized fits in 9 of 9. `multimodalsrm.bayesian.lag_priors` centres GP lag
156
+ priors on the seeded lags, since the GP MAP search starts lags from their priors;
157
+ with it a single GP start recovered delays of 5 and 10 s in 4 of 4 cases against
158
+ 0 of 4 from wide bounds. On the one empirical recording tested the scan found
159
+ no reliable delay for any modality pair, and ordinary fits there reached the
160
+ same lag from starts 12 s apart; an unreliable scan warns and leaves the
161
+ configured lags and bounds unchanged.
162
+ - **`timing_report()` on both estimators.** Reports each modality's peak delay
163
+ relative to a reference modality, pairwise differences, the clock origin that
164
+ was subtracted, and lags resting at a bound. The reference only sets which
165
+ modality is shown at zero; by default it is the first modality whose lag is not
166
+ estimated, or the first modality when every lag is estimated.
167
+ Only relative timing is identified, so no modality needs a fixed lag. For
168
+ posterior fits it summarizes peak delay per draw. `peak_delay(kernel)` gives the
169
+ peak of any response family; for Gamma, DoubleGamma and BatemanSCR it is better
170
+ determined than the `lag` onset parameter.
171
+ - `MultimodalSRM(kernel_tol=1e-4)` adds a response-step condition to convergence:
172
+ no free response coordinate may have moved further than `kernel_tol` in the last
173
+ iteration (seconds for lags, log units for positive parameters). Alternating
174
+ updates can move a response by a small, nearly constant step for hundreds of
175
+ iterations while every objective decrement stays below `tol`. In a synthetic
176
+ eight-participant fit the objective-only rule reported convergence at iteration
177
+ 65 with a response width of 0.669 that later settled at 0.75. `kernel_tol=None`
178
+ restores the objective-only rule, and earlier pickles load with it.
179
+ - `MultimodalSRM(kernel_extrapolation=True)` follows each iteration's response step
180
+ further while refitted latents and maps keep lowering the complete objective. The
181
+ objective and its stationary points are unchanged. The same synthetic fit reached
182
+ the new criterion in 99 iterations instead of 373. Per-iteration `kernel_step` and
183
+ `kernel_extrapolation` records are in `restart_diagnostics_`.
184
+ - `SearchConfig(relative_gradient_tolerance=1e-6)` adds an objective-relative MAP
185
+ gradient criterion. `meets_gradient_tolerance` is now true when the largest
186
+ physical projected gradient is at most `physical_gradient_tolerance` or at most
187
+ `relative_gradient_tolerance * abs(objective)`. Diagnostics add
188
+ `relative_projected_gradient` and `gradient_criterion`. The absolute threshold
189
+ alone could not separate a converged large fit (gradient 0.037 at objective
190
+ 858,992) from a stalled start (gradient 60,800 at objective 1,195,617).
191
+ `relative_gradient_tolerance=0` restores the absolute-only gate, and archives
192
+ written before this option keep it.
193
+
194
+ ### Changed
195
+
196
+ - **`BayesianMultimodalSRM(inference=...)` now defaults to `"map"`.** A plain
197
+ `fit` used to run NUTS, which is experimental, excludes the state-space algebra
198
+ and can take hours on a full recording. Pass `inference="posterior"` to sample.
199
+ - **`MultimodalSRM(response_penalty_scaling=...)` now defaults to `"likelihood"`.**
200
+ A lag prior's `sd` is in seconds and `pooling_strength` is `1 / sd²` of the
201
+ spread between participants. Fits with no `lag_prior`, `Response.prior` or
202
+ partial pooling are unchanged; fits that use them are penalized far less than
203
+ before, and `"objective"` restores the earlier weighting. Estimators pickled by
204
+ earlier versions keep `"objective"`.
205
+ - **GP-MSRM lag summaries share one reference.** With every lag estimated,
206
+ `relative_lag_draws()` and the fit summary's peak delays now show the first
207
+ modality at zero, as `timing_report()` does, instead of centring on the
208
+ across-modality mean. With several fixed lags the reference is the first in the
209
+ order the responses were given rather than the first alphabetically. Pairwise
210
+ differences are unchanged, and fits saved under the earlier convention keep it.
211
+ - **`Response(pooling=...)` now defaults to `"shared"`.** The earlier default,
212
+ `"partial"` with `pooling_strength=1`, already behaved almost like complete
213
+ pooling, because the penalty is added unscaled to a normalized loss: in a
214
+ synthetic three-participant fit the participants' lags differed by 0.002 s and
215
+ the fitted relative delay was the same to 0.001 s under either setting. The
216
+ default now says what it does, and matches GP-MSRM, which supports shared
217
+ responses only. To estimate participant responses, pass `pooling="partial"` or
218
+ `"none"`, preferably with `MultimodalSRM(response_penalty_scaling="likelihood")`
219
+ so that `pooling_strength` is `1 / sd²` of the spread between participants.
220
+ `Response.lag_only` changes with it.
221
+ - **Edge observations are scored by default.** `MultimodalSRM` now defaults to
222
+ `edge_observations="include"` and `BayesianMultimodalSRM` to `"auto"`, which
223
+ includes for dense, grouped and state-space algebra and excludes for spectral
224
+ algebra. Fits with a non-`Identity` response therefore score more rows than
225
+ before and give different numbers; pass `edge_observations="exclude"` to
226
+ reproduce earlier fits. Saved R-MSRM pickles and GP-MSRM archives keep the
227
+ setting they were fitted with. In held-out synthetic runs with a 25 s causal
228
+ response, error on the rows both settings predict was 0.054 against 0.055 for
229
+ 120 s and 300 s runs, and in 60 s runs exclusion left too few rows for a stable
230
+ fit in one of six recordings; the rows only `"include"` predicts had an error
231
+ near 0.18, where predicting the mean scores 1. The GP showed the same pattern
232
+ (0.114 against 0.143 on shared rows over five recordings). On the empirical
233
+ recording, where cross-modal prediction is near chance under either setting,
234
+ the two did not differ beyond noise.
235
+ - **R-MSRM latent smoothness is now specified as a correlation time, with stronger
236
+ defaults.** `MultimodalSRM(latent_timescale=2.0)` (timestamp units, normally
237
+ seconds) replaces `temporal_strength`. The latent penalty is
238
+ `latent_ridge * (mean z² + latent_timescale² * mean (dz/dt)²)`, and
239
+ `latent_ridge` now defaults to 0.1. The earlier defaults (`latent_ridge=1e-4`,
240
+ `temporal_strength=1e-2`) left latent nodes between observations nearly
241
+ unconstrained. In synthetic sweeps over four sampling layouts and three noise
242
+ levels the new defaults were much better when noise was moderate or high or one
243
+ stream predicted another, and up to 0.03 R² worse at the lowest noise level.
244
+ They are tuned on synthetic data only. Fits that relied on the old defaults will change; pass
245
+ `temporal_strength=1e-2` to reproduce them.
246
+ - `max_observations` now bounds what each GP backend factorizes per run: eligible
247
+ scalars for dense and spectral algebra, exact modality/time nodes times factors
248
+ for grouped algebra, and nodes for grouped state-space filtering. Run baselines,
249
+ correlated noise and scalar state-space updates keep the scalar count. The error
250
+ reports the measured size and the alternatives.
251
+ - The GP error for a non-shared response names the modality and the fix, and the
252
+ MAP convergence warning reports the gradient, objective and both limits.
253
+ - Grouped GP marginal prediction reuses each parameter draw's factorization
254
+ across output features and evaluates response covariance at unique query
255
+ times. Query batches and one-draw conditioning state bound temporary memory.
256
+ White and OU noise, feature masks, and draw-specific latent rotations retain
257
+ the same conditional moments; run-baseline predictions retain their existing
258
+ calculation. Caches live only within the current prediction result.
259
+
260
+ ### Deprecated
261
+
262
+ - `MultimodalSRM(temporal_strength=...)`. It still works, warns, keeps the earlier
263
+ `latent_ridge=1e-4` default, and equals `latent_ridge * latent_timescale**2`.
264
+
265
+ ### Fixed
266
+
267
+ - **Constant features that escaped detection.** A feature was treated as
268
+ constant only when its computed standard deviation was at most machine epsilon
269
+ (`2.2e-16`). A column holding one repeated value usually misses that: the mean
270
+ carries rounding error, so the deviation comes out near `1e-15` (for example
271
+ `1.1e-15` for 200 samples of `0.3`). Such a feature was then standardized by
272
+ that deviation, which turned rounding noise into a unit-variance signal that
273
+ received loadings in the fit, and scaled any new data for the feature by about
274
+ `1e15`. Of six constant values tried (`0.3`, `0.7`, `1.1`, `-2.3`, `5.123`,
275
+ `0.1`), only `0.1` was flagged. A feature now also counts as constant when its
276
+ largest and smallest observed values are equal, in both `MultimodalSRM` and
277
+ `BayesianMultimodalSRM` preprocessing. That test is exact, so a feature that
278
+ varies by any amount is kept. Fits without constant features are
279
+ unchanged.
280
+
281
+ - **Grouped algebra returned wrong or infinite densities on long recordings with
282
+ smooth covariance.** `linear_algebra="grouped"` factored the nonsymmetric
283
+ `I + K D` (`K` the covariance over shared nodes, `D` their observation precision)
284
+ by LU with partial pivoting, whose element growth has no useful bound for this
285
+ matrix. With three participants, 504 one-second samples, two modalities of three
286
+ features and a Gaussian response of width 5 over a 3 s length scale (1,008
287
+ nodes), the matrix had a condition number near 1e3 and a log determinant of
288
+ 752.9, yet the LU diagonal ran from 4e-29 to 4.5e44. The grouped objective was
289
+ 5.7e57 where the unreduced covariance gives 13,173.7, and infinite at width 6.
290
+ L-BFGS-B stepped into such a value, backed off to a zero step and reported
291
+ convergence with a gradient near 250. Accuracy was already lost at smaller sizes:
292
+ with the same design at 300 nodes the density was wrong in the sixth digit at
293
+ width 6 and the fourth at width 8, and at 400 nodes by a factor of 1e5 at
294
+ width 6. At 200 nodes or fewer, and at widths up to 3 at every size, it agreed
295
+ with the unreduced covariance to 1e-13.
296
+ Every consumer of that factor was affected: the multi-factor density, run
297
+ baselines, correlated noise, conditional prediction, joint latent trajectories
298
+ and the variance polishing step, which declined the repair. With a root
299
+ `D = R.T R` the matrix is similar to the symmetric positive-definite
300
+ `I + R K R.T`, which is now Cholesky factored: the square root of the diagonal
301
+ for one factor, an eigenvector root of each node's block for several. Nothing is
302
+ divided by a loading and `K` is not inverted, so zero loadings and singular `K`
303
+ remain valid, and derivatives of every order come from identities in `K` and `D`
304
+ rather than from differentiating the root. Correlated noise makes `D` couple
305
+ nodes, where no cheap root exists, and uses Householder QR instead. Grouped and
306
+ dense objectives now agree to 1e-15 relative at every size and width above, and
307
+ gradients to 2e-12 at 1,008 nodes. One objective-and-gradient evaluation there took
308
+ 11.0 and 12.6 ms before and after for one factor, 50.7 and 50.9 ms for two
309
+ factors, 25.3 and 19.5 ms with run baselines and 26.3 and 37.0 ms with
310
+ correlated noise, where QR costs about five times LU. The one-factor gradient
311
+ needs one more matrix product than before; its objective alone fell from 5.8 to
312
+ 3.6 ms.
313
+ - **Bus error with `response_quadrature_order=32` and a `Gaussian` response.**
314
+ `BayesianMultimodalSRM` evaluated response covariances in fixed batches of 32
315
+ time differences. With 256 quadrature nodes (order 32 on the eight Gaussian
316
+ panels) each batch intermediate was exactly 64 KiB, the largest size that
317
+ jaxlib 0.11's CPU fusion runtime places on the stack of an XLA worker thread,
318
+ and several of them nested overflowed that 544 KiB stack. The process died with
319
+ "Fatal Python error: Bus error", most visibly after a MAP search when the final
320
+ log-likelihood was evaluated. The batch is now sized so these intermediates
321
+ always exceed the stack-allocation limit. Each time difference is still
322
+ evaluated by the same arithmetic.
323
+ - **Bus error from a partial response-quadrature batch.** The batch sizing above
324
+ keeps whole batches over jaxlib 0.11's 64 KiB stack-allocation limit, but
325
+ `jax.lax.map` evaluates the last, partial batch on its own, and that one could
326
+ fall back under the limit. Order 64 on the nine Gamma panels gives 576 nodes:
327
+ fourteen distinct time differences made one 14 x 576 float64 buffer of 63 KiB,
328
+ and eight of those nested overflow the 544 KiB stack. A compiled Gamma covariance
329
+ over 14 timestamps killed the interpreter in 5 of 5 runs. Whether a larger
330
+ program crashed depended on which thread ran the kernel: an order-16 Gaussian
331
+ objective over 126 timestamps (a partial batch of 61 x 128) ran in every run or
332
+ died in every run according to unrelated details of the rest of the program. The
333
+ last time difference is now repeated until the partial batch is large enough,
334
+ and the repeats are dropped. Each time difference is still evaluated by the same
335
+ arithmetic. The cost is at most one batch of extra rows per pair of modalities:
336
+ 0.1 ms on a 60-node objective, not measurable at 1,008 nodes.
337
+ - **GP response-quadrature gradients at quadrature endpoints.** With
338
+ `response_quadrature_order` set, the weighted Matérn sum bounded its exponential
339
+ coordinates with `clip`, whose derivative is one half where the query equals the
340
+ first or last quadrature node. The node at that boundary is counted on one side
341
+ only, so the covariance gradient gained a slope that is not there. Values were
342
+ always right. A response node lands exactly on an endpoint when a learned
343
+ Gaussian response has its default width of 1 and timestamps are 2, 8 or 10 s
344
+ apart, or when two modalities start from identical response parameters on the
345
+ same clock. That is typically the starting point of a fit rather than a later
346
+ iterate. In a synthetic two-participant fit on a 2 s clock the objective gradient
347
+ for a Gaussian width was −7.4654 where a central difference gives −7.4623, and
348
+ for a lag −5.11320 against −5.11332; both now agree with the difference to 2e-8.
349
+ In the primitive, with nodes `[-5, -0.2, 3]`, signed weights and a 3 s length
350
+ scale, the slope at the last node was −0.381 against a true 0.023. Second
351
+ derivatives, which MAP polishing uses, were affected at the same points.
352
+
353
+ ### Performance
354
+
355
+ - GP response quadrature computes each pair of modalities once when a covariance
356
+ is requested between a set of timestamps and itself, filling the transposed
357
+ block, and evaluates one value per distinct absolute time difference within a
358
+ modality. Timestamps are compared exactly, and queries against a different clock
359
+ or against traced times take the full calculation as before. On synthetic
360
+ two-participant problems with two learned Gaussian responses on CPU, one
361
+ objective-and-gradient evaluation ran 1.3 to 1.8 times faster across dense and
362
+ grouped algebra, orders 64 and 384, and 24 or 48 timestamps per modality, timed
363
+ on a busy machine; objectives agreed to 3e-12 and gradients to 2e-11 away from the
364
+ endpoint cases above.
365
+ - R-MSRM response operators are shared across participants whose timestamps are
366
+ identical within a run and modality, instead of being rebuilt per participant.
367
+ The quadrature operator for Gamma, DoubleGamma, sampled and Identity responses
368
+ integrates rows in chunks rather than one at a time and returns the same
369
+ matrices. A synthetic eight-participant fit with a learned Gamma response fell
370
+ from 482 s to 21 s, and its Gaussian counterpart from 34 s to 12 s, with
371
+ identical objectives.
372
+
373
+ ## [0.2.0] — 2026-09-22
374
+
375
+ ### Added
376
+
377
+ - **Grouped state-space filtering and smoothing extended to learned responses.**
378
+ Node grouping at exact `(modality, native timestamp)` pairs now also covers learned
379
+ responses under strictly positive noise priors, including changing event order and
380
+ coincident times. Noiseless support retains scalar updates.
381
+ - **Grouped fixed-response state-space filtering and smoothing.** Observations that
382
+ share an exact `(modality, native timestamp)` are collapsed into single nodes for
383
+ filtering and RTS smoothing, rather than repeating a Kalman update and storing a
384
+ transition per observed scalar. In a synthetic fixed-Bateman case 8,002 scalar
385
+ events become 257 nodes and complete fit time falls from 19.6 s to 8.0 s, with both
386
+ fits converging to the same objective. Grouping engages automatically inside
387
+ `linear_algebra="state_space"` when responses are fixed and noise support is
388
+ strictly positive; learned responses and priors admitting zero variance keep scalar
389
+ updates. Timestamps are compared exactly, with no binning or added jitter, and
390
+ archive schemas and historical fit evidence are preserved.
391
+ - **`BatemanSCR` as the shared skin-conductance response for R and GP workflows.**
392
+ Exposes positive rise/decay time constants and lag, with vectorized R cell
393
+ integration, complex-step derivatives, and a compact two-state realization for
394
+ differentiable state-space MAP. Retains the toolbox's 90-second finite support and
395
+ continuous L2 normalization, and handles equal and nearly equal time constants
396
+ without singular partial fractions. Dense and grouped GP require explicit response
397
+ quadrature; state-space MAP checks a uniform bound for the truncated tail.
398
+ It replaces `BachSCR` (see Removed); archives are never silently converted, so
399
+ switching an existing analysis requires an explicit response change and a refit.
400
+ - **A `bayesian-cuda` extra, and one-time advice when a visible NVIDIA card goes
401
+ unused.** The extra installs the pinned JAX CUDA plugin on Linux x86\_64 and
402
+ resolves to the CPU runtime elsewhere. A fit process warns once when an NVIDIA
403
+ driver is visible but JAX initialized its CPU backend, unless the platform was
404
+ pinned through the environment.
405
+ - **A one-time warning when the CPU factorization callback runs oversubscribed.**
406
+ The symmetric factorization runs LAPACK POTRF/POTRI inside a JAX host callback
407
+ while XLA's own thread pool already occupies the cores. On a 64-core Linux
408
+ workstation the BLAS default of one thread per core slowed a 2,727-dimension
409
+ factorization by up to 10x relative to 16 threads. The callback now emits a
410
+ `RuntimeWarning` once per process when the visible BLAS pool exceeds half the
411
+ physical cores. No thread limits are changed and no numerical behavior changes.
412
+
413
+ - **Optional R-MSRM warm start for the first GP MAP restart.**
414
+ `SearchConfig(r_init=True)` seeds the first full-training restart from a bounded
415
+ CPU R-MSRM fit, which supplies loadings, offsets, residual noise variances and
416
+ Gaussian response estimates. It is **off by default**: GP priors, native
417
+ timestamps, remaining prior-quantile restarts and convergence checks are
418
+ unchanged, and a numerical failure retains the historical start with a warning and
419
+ a recorded reason. The measured benefit is scale-dependent — small synthetic cases
420
+ show fewer iterations but no reduction in total time, and an evaluation on a real
421
+ recording did not reproduce the larger synthetic gain — so enabling it is a
422
+ per-analysis decision. Archives missing the setting restore it as false without
423
+ rewriting saved fit evidence.
424
+
425
+ ### Changed
426
+
427
+ - **Posterior mixing diagnostics are computed in batched NumPy over every quantity
428
+ at once.** Rank-normalized split R-hat, bulk and 5%/95% tail ESS, Monte Carlo
429
+ errors and BFMI reproduce ArviZ's definitions to rounding. The diagnostics phase
430
+ of a 57,758-quantity posterior drops from 106 s to under 1 s at 15 draws, and
431
+ from about 160 s to under 40 s at 1,200 draws. The summary is a small
432
+ array-backed table rather than a pandas DataFrame, so ArviZ, xarray and pandas
433
+ all leave the `bayesian` extra, and ArviZ joins the `test` extra as the
434
+ reference implementation.
435
+
436
+ ### Removed
437
+
438
+ - **Breaking: `BachSCR` is removed.** Use `BatemanSCR` for skin-conductance
439
+ workflows. `BachSCR` is no longer importable or accepted by R or GP fitting, and
440
+ its separate rational approximation, quadrature formula, parameter constraints and
441
+ serialization registration are gone. GP archives containing Bach records now fail
442
+ before model reconstruction with migration guidance: reproduce them in their
443
+ original environment, or configure `BatemanSCR` and refit from the original
444
+ observations. No fitted parameters or archives are converted automatically.
445
+ Remaining response identifiers and archive schemas are unchanged.
446
+
447
+ ## [0.1.0] — 2026-09-22
448
+
449
+ First package release of the extracted models.
450
+
451
+ ### Added
452
+
453
+ - Extract R-MSRM and GP-MSRM production modules from the frozen source handoff,
454
+ retaining model objectives, response conventions, priors and numerical behavior.
455
+ - Expose `multimodalsrm.MultimodalSRM` and `multimodalsrm.bayesian.BayesianMultimodalSRM`
456
+ with optional Bayesian dependencies.
457
+ - Transfer focused synthetic core/Bayesian tests and add small R fitting and
458
+ GP MAP/archive-replay examples.
459
+ - Document supported posterior workflows, numerical backends, legacy archive
460
+ compatibility and the source-bound warmup checkpoint contract.
461
+ - Retain Linux/macOS installed-wheel and installed-sdist CI, integration/version
462
+ gates and release-driven Trusted Publishing infrastructure.
463
+ - Add a searchable Zensical documentation site with GitHub Pages deployment.
464
+ - Separate fast PR checks from the full Linux/macOS release suite.
465
+
466
+ Test evidence belongs to the integration record and corresponding CI run; this
467
+ changelog makes no calibration or recovery claim. Learned FIR responses remain
468
+ deferred.
469
+
470
+ [Unreleased]: https://github.com/ljchang/multimodalsrm/compare/v0.3.1...HEAD
471
+ [0.3.1]: https://github.com/ljchang/multimodalsrm/compare/v0.3.0...v0.3.1
472
+ [0.3.0]: https://github.com/ljchang/multimodalsrm/compare/v0.2.0...v0.3.0
473
+ [0.2.0]: https://github.com/ljchang/multimodalsrm/compare/v0.1.0...v0.2.0
474
+ [0.1.0]: https://github.com/ljchang/multimodalsrm/releases/tag/v0.1.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multimodalsrm
3
- Version: 0.2.0
3
+ Version: 0.3.1
4
4
  Summary: Shared response models for native-time multimodal observations
5
5
  Author: Luke J. Chang
6
6
  License-Expression: MIT
@@ -57,7 +57,7 @@ Dynamic: license-file
57
57
 
58
58
  Shared response models for observations measured across people, modalities and native sampling times.
59
59
 
60
- **Version `0.2.0`.** This package contains the extracted R-MSRM and GP-MSRM implementations. Software checks, fit convergence, uncertainty calibration and empirical recovery are separate claims.
60
+ **Version `0.3.1`.** This package contains the extracted R-MSRM and GP-MSRM implementations. Software checks, fit convergence, uncertainty calibration and empirical recovery are separate claims.
61
61
 
62
62
  ## Models
63
63
 
@@ -66,6 +66,8 @@ Shared response models for observations measured across people, modalities and n
66
66
 
67
67
  Both use named native-time observations, masks and missing streams. They preserve explicit information boundaries for held-out prediction. Learned FIR responses are deferred. Legacy neighborhood, graph, mixture and reference estimators are not exported by this package. See the [capability and backend matrix](docs/capabilities.md) before choosing a workflow.
68
68
 
69
+ Two functions estimate shared **response timing** in the frequency domain, each with a test of whether any timing relation is detectable: `estimate_responses` for R-MSRM, where the latent penalty then takes no part in the estimate, and `multimodalsrm.bayesian.whittle_estimate` for GP-MSRM, whose cost grows linearly with the number of samples. Both are validated on simulations only. See [how they work](docs/concepts.md#estimating-response-timing-in-the-frequency-domain) and the [examples](docs/tutorials.md#frequency-domain-response-estimation).
70
+
69
71
  `Response(BatemanSCR(...))` models skin-conductance streams across R and supported GP workflows. See the [SCR guide](docs/scr-responses.md) and [shared R/GP example](examples/scr_quickstart.py). Version 0.2.0 removed `BachSCR`; reproduce Bach models and archives in a 0.1.0 environment ([migration](docs/migration.md#skin-conductance-responses)).
70
72
 
71
73
  ## Install
@@ -73,9 +75,9 @@ Both use named native-time observations, masks and missing streams. They preserv
73
75
  Python 3.12 or later is required. Install the release from PyPI:
74
76
 
75
77
  ```sh
76
- python -m pip install "multimodalsrm==0.2.0"
78
+ python -m pip install "multimodalsrm==0.3.1"
77
79
  # Optional Bayesian runtime:
78
- python -m pip install "multimodalsrm[bayesian]==0.2.0"
80
+ python -m pip install "multimodalsrm[bayesian]==0.3.1"
79
81
  ```
80
82
 
81
83
  Enable float64 before using the Bayesian model (`JAX_ENABLE_X64=true`). See the [installation guide](https://ljchang.github.io/multimodalsrm/getting-started/) for environment setup.
@@ -89,6 +91,7 @@ python3.12 -m venv .venv
89
91
  source .venv/bin/activate
90
92
  python -m pip install -e .
91
93
  python examples/r_quickstart.py
94
+ python examples/r_frequency_domain.py # response timing from estimate_responses
92
95
  ```
93
96
 
94
97
  For the optional Bayesian runtime:
@@ -96,6 +99,7 @@ For the optional Bayesian runtime:
96
99
  ```sh
97
100
  python -m pip install -e '.[bayesian]'
98
101
  JAX_ENABLE_X64=true JAX_PLATFORM_NAME=cpu python examples/gp_map_quickstart.py
102
+ JAX_ENABLE_X64=true JAX_PLATFORM_NAME=cpu python examples/gp_frequency_domain.py # response timing from whittle_estimate
99
103
  ```
100
104
 
101
105
  The base install does not require JAX, NumPyro, ArviZ or plotting libraries. The Bayesian extra pins the runtime used by the source handoff; enabling float64 is required. Editable source installs follow the checkout; use the `v0.2.0` tag to match this release.
@@ -6,7 +6,7 @@
6
6
 
7
7
  Shared response models for observations measured across people, modalities and native sampling times.
8
8
 
9
- **Version `0.2.0`.** This package contains the extracted R-MSRM and GP-MSRM implementations. Software checks, fit convergence, uncertainty calibration and empirical recovery are separate claims.
9
+ **Version `0.3.1`.** This package contains the extracted R-MSRM and GP-MSRM implementations. Software checks, fit convergence, uncertainty calibration and empirical recovery are separate claims.
10
10
 
11
11
  ## Models
12
12
 
@@ -15,6 +15,8 @@ Shared response models for observations measured across people, modalities and n
15
15
 
16
16
  Both use named native-time observations, masks and missing streams. They preserve explicit information boundaries for held-out prediction. Learned FIR responses are deferred. Legacy neighborhood, graph, mixture and reference estimators are not exported by this package. See the [capability and backend matrix](docs/capabilities.md) before choosing a workflow.
17
17
 
18
+ Two functions estimate shared **response timing** in the frequency domain, each with a test of whether any timing relation is detectable: `estimate_responses` for R-MSRM, where the latent penalty then takes no part in the estimate, and `multimodalsrm.bayesian.whittle_estimate` for GP-MSRM, whose cost grows linearly with the number of samples. Both are validated on simulations only. See [how they work](docs/concepts.md#estimating-response-timing-in-the-frequency-domain) and the [examples](docs/tutorials.md#frequency-domain-response-estimation).
19
+
18
20
  `Response(BatemanSCR(...))` models skin-conductance streams across R and supported GP workflows. See the [SCR guide](docs/scr-responses.md) and [shared R/GP example](examples/scr_quickstart.py). Version 0.2.0 removed `BachSCR`; reproduce Bach models and archives in a 0.1.0 environment ([migration](docs/migration.md#skin-conductance-responses)).
19
21
 
20
22
  ## Install
@@ -22,9 +24,9 @@ Both use named native-time observations, masks and missing streams. They preserv
22
24
  Python 3.12 or later is required. Install the release from PyPI:
23
25
 
24
26
  ```sh
25
- python -m pip install "multimodalsrm==0.2.0"
27
+ python -m pip install "multimodalsrm==0.3.1"
26
28
  # Optional Bayesian runtime:
27
- python -m pip install "multimodalsrm[bayesian]==0.2.0"
29
+ python -m pip install "multimodalsrm[bayesian]==0.3.1"
28
30
  ```
29
31
 
30
32
  Enable float64 before using the Bayesian model (`JAX_ENABLE_X64=true`). See the [installation guide](https://ljchang.github.io/multimodalsrm/getting-started/) for environment setup.
@@ -38,6 +40,7 @@ python3.12 -m venv .venv
38
40
  source .venv/bin/activate
39
41
  python -m pip install -e .
40
42
  python examples/r_quickstart.py
43
+ python examples/r_frequency_domain.py # response timing from estimate_responses
41
44
  ```
42
45
 
43
46
  For the optional Bayesian runtime:
@@ -45,6 +48,7 @@ For the optional Bayesian runtime:
45
48
  ```sh
46
49
  python -m pip install -e '.[bayesian]'
47
50
  JAX_ENABLE_X64=true JAX_PLATFORM_NAME=cpu python examples/gp_map_quickstart.py
51
+ JAX_ENABLE_X64=true JAX_PLATFORM_NAME=cpu python examples/gp_frequency_domain.py # response timing from whittle_estimate
48
52
  ```
49
53
 
50
54
  The base install does not require JAX, NumPyro, ArviZ or plotting libraries. The Bayesian extra pins the runtime used by the source handoff; enabling float64 is required. Editable source installs follow the checkout; use the `v0.2.0` tag to match this release.
@@ -21,6 +21,7 @@ SearchConfig(
21
21
  n_jobs=1,
22
22
  conditioning="none",
23
23
  r_init=False,
24
+ relative_gradient_tolerance=1e-06,
24
25
  )
25
26
  ```
26
27
 
@@ -37,6 +38,7 @@ SearchConfig(
37
38
  | `n_jobs` | `int` | `1` |
38
39
  | `conditioning` | `str` | `"none"` |
39
40
  | `r_init` | `bool` | `False` |
41
+ | `relative_gradient_tolerance` | `float` | `1e-06` |
40
42
 
41
43
  MAP budgets; n_jobs runs independent restarts in shared-memory threads.
42
44
 
@@ -50,9 +52,16 @@ It is opt-in: the default is the historical data-based first start. The
50
52
  measured benefit is scale-dependent and has not been shown to transfer to
51
53
  empirical recordings, so enabling it is a per-analysis decision.
52
54
 
55
+ A MAP point meets the gradient tolerance when its largest physical projected
56
+ gradient is at most `physical_gradient_tolerance`, or at most
57
+ `relative_gradient_tolerance * abs(objective)`. The marginal likelihood
58
+ and its gradients sum over observations, so the absolute threshold alone
59
+ sits below double-precision gradient noise for large recordings. Set
60
+ `relative_gradient_tolerance=0` for the historical absolute-only gate.
61
+
53
62
  ## SamplerConfig
54
63
 
55
- `from multimodalsrm.bayesian import SamplerConfig` · [Source](https://github.com/ljchang/multimodalsrm/blob/main/src/multimodalsrm/bayesian/fitting.py#L69)
64
+ `from multimodalsrm.bayesian import SamplerConfig` · [Source](https://github.com/ljchang/multimodalsrm/blob/main/src/multimodalsrm/bayesian/fitting.py#L84)
56
65
 
57
66
  ```python
58
67
  SamplerConfig(