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