multimodalsrm 0.3.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.
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/CHANGELOG.md +14 -1
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/PKG-INFO +8 -4
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/README.md +7 -3
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/api/estimators.md +2 -1
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/capabilities.md +6 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/changelog.md +14 -1
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/concepts.md +19 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/getting-started.md +4 -4
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/index.md +2 -2
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/model-mathematics.md +91 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/temporal-kernels.md +4 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/tutorials.md +26 -0
- multimodalsrm-0.3.1/examples/gp_frequency_domain.py +101 -0
- multimodalsrm-0.3.1/examples/r_frequency_domain.py +93 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_version.py +1 -1
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/whittle.py +9 -1
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/PKG-INFO +8 -4
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/SOURCES.txt +3 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_whittle.py +19 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_spectral.py +15 -63
- multimodalsrm-0.3.1/tests/core/test_spectral_families.py +76 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/test-durations.json +2 -1
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/CITATION.cff +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/CONTRIBUTING.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/LICENSE +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/MANIFEST.in +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/api/configuration.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/api/data-results.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/api/evaluation.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/api/responses.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/api-guide.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/data.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/documentation.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/extraction-validation.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/figure-provenance.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/grouped-learned-state-space-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/grouped-state-space-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/grouped-state-space.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/migration.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/model-integration.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-19-apple-mps-feasibility.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-21-gp-algorithmic-opportunities.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-21-gp-speedup-experiments.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-21-linux-cuda-gpu-opportunities.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-gaussian-followup.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-gaussian-orders.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-map-baseline-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-map-baseline.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-next-optimizations.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-next-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-parallel-scaling-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-parallel-scaling.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-response-bound-sensitivity-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-response-bound-sensitivity.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-response-candidates-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-response-candidates.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-response-holdout-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-22-gp-response-holdout.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-block-filter-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-block-filter.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-clock-calibration-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-clock-calibration.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-clock-preserved-fits.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-clock-preserved-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-expanded-response-fits.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-expanded-response-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-grouped-prediction-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-grouped-prediction.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-temporal-refit-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/2026-09-23-gp-temporal-refits.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/gp-response-research.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/r-map-initialization-results.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/performance/r-map-initialization.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/plans/2026-09-21-distribution-infrastructure.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/plans/2026-09-21-model-extraction.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/releasing.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/scr-responses.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/superpowers/plans/2026-09-21-post-release-linux-performance-evaluation.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/test-migration.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/docs/testing.md +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/examples/gp_map_quickstart.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/examples/r_quickstart.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/examples/scr_quickstart.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/model-integration.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/model-source.json +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/pyproject.toml +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/audit_gp_empirical_clocks.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_gaussian_compile.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_grouped_prediction.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_loading_collapse.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_node_filter.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_parallel_filter.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_response_candidates.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_gp_response_holdout_parallel.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_grouped_state_space.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/benchmark_r_initialization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/build_api_reference.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/build_kernel_figures.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_gp_empirical_predictions.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_gp_parallel_numerics.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_gp_response_baseline.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_gp_response_holdout.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_gp_temporal_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_gp_transition_reuse.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_release.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/check_test_report.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/ci_policy.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/clock_preserving_emo_data.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/collect_gp_response_starts.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/compare_gp_response_families.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/diagnose_gp_response_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/fit_gp_response_baseline.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/gp_block_filter.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/gp_response_candidates.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/gp_response_holdout.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/investigate_gp_response_bounds.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/probe_gp_calibration_sensitivity.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/probe_gp_correlated_noise.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/qualify_gp_block_filter.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/qualify_gp_gaussian_map_orders.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/qualify_gp_gaussian_orders.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/qualify_gp_parallel_scaling.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/refit_gp_temporal_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/run_model_tests.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/score_gp_temporal_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/select_gp_temporal_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/summarize_gp_block_filter.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/summarize_gp_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/summarize_gp_parallel_scaling.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/summarize_gp_response_holdout.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/summarize_gp_temporal_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/scripts/sync_changelog.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/setup.cfg +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/__init__.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_bateman.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_observation_preparation.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/_parallel.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/alignment.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bateman_operators.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/__init__.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/_archive.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/_backend.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/baselines.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/blocks.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/calibration_archive.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/calibration_problem.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/covariance_pairs.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/diagnostics.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/environment.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/execution.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/factorization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/fitting.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/gp_hyperparameters.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/grouped.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/grouped_prediction.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/grouped_score.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/identity.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/laplace.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/map_conditioning.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/map_parallel.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/model.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/multifactor.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/multifactor_cholesky.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/multifactor_score.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/noise_profile.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/observation_adapter.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/orientation_diagnostics.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/orientation_persistence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/orthogonal.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/persistence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/polishing.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_coordinates.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_participants.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_persistence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/posterior_updates.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/precision_factor.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/prediction.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/priors.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/problem.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/quality.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/r_initialization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/rank_diagnostics.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/reference.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/refinement_coordinates.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/response_quadrature.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/response_scope.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/results.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/spectral.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_compact.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_delays.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_gaussian.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_gaussian_rational.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_grouped.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_parameters.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_rational.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/state_space_responses.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/temporal_noise.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/timing.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/trajectories.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/transform.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/updated_posterior_persistence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/warmup_checkpoint.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/whittle_likelihood.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/bayesian/workflow.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/data.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/estimator.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/grouping.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/inference.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/initialization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/inspection.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/kernel_optimization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/kernels.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/lags.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/objective.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/operators.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/optimization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/posterior_results.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/results.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/selection.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/spectral.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm/validation.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/dependency_links.txt +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/requires.txt +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/src/multimodalsrm.egg-info/top_level.txt +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/__init__.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/__init__.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bateman_scr.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_analytic_score.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_bateman_posterior.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_blocks.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_covariance_pairs.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_diagnostics.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_environment.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_factorization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_filter_recovery.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_fit_quality.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_frozen.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_gamma_posterior.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_gp_timescale.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_grouped.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_instantaneous.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_map_conditioning.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_map_parallel.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_mixed_responses.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_model.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_cpu.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_posterior.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_refinement.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_multifactor_workflow.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_noise_profile.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_optional_conventions.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_orientation_diagnostics.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_orientation_sampling.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_orthogonal_kernel.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_parallel.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_parameter_scaling.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_persistence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_polishing_guard.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_evidence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_participants.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_persistence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_posterior_updates.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_prediction.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_problem.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_quadrature_accuracy.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_quadrature_stack.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_r_initialization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_reference.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_refinement.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_residual_diagnostics.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_run_baselines.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_sampler_geometry.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_spectral.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_delays.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_gaussian.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_parameters.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_responses.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_state_space_scr.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_temporal_noise.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_timing.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_trajectories.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_transform.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_updated_persistence.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_warmup_checkpoint.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_bayesian_workflow.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_capacity_and_gradient_gate.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_edge_observations.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_grouped_factor_stability.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_grouped_prediction.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_laplace_lag_uncertainty.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_removed_bach_archive.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_response_quadrature_symmetry.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_compact_gaussian.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_delays.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_gaussian.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_gaussian_method.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_grouped.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_grouped_learned.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_optional_conventions.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_parameter_workflows.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_parameters.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_rational.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_state_space_responses.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/bayesian/test_timing_report.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/__init__.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_alignment_centering.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_bateman_scr.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_edge_observations.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_factor_report.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_gaussian_operator_exact.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_kernel_step_stopping.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_lags.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_latent_timescale.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_alignment.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_calibration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_components.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_cpu_algebra.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_fit.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_inference.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_initialization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_inspection.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_kernel_acceleration.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_loading_scaling.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_optimization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_parallel.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_primitives.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_reproducibility.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_scale.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_selection.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_shared_default.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_timing.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_multimodal_validation.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_observation_preparation.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_operator_vectorization.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_response_bounds.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/core/test_response_penalty_scaling.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_changelog.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_ci_policy.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_ci_workflows.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_model_test_report.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_package.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_release_gate.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/infrastructure/test_sharding.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/reference/__init__.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/reference/continuous_covariance.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/reference/multifactor_fixture.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/reference/optimization_fixture.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/reference/participant_conditioning.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/reference/posterior_fixture.py +0 -0
- {multimodalsrm-0.3.0 → multimodalsrm-0.3.1}/tests/smoke-tests.json +0 -0
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
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
|
+
|
|
10
22
|
## [0.3.0] — 2026-11-29
|
|
11
23
|
|
|
12
24
|
### Added
|
|
@@ -455,7 +467,8 @@ Test evidence belongs to the integration record and corresponding CI run; this
|
|
|
455
467
|
changelog makes no calibration or recovery claim. Learned FIR responses remain
|
|
456
468
|
deferred.
|
|
457
469
|
|
|
458
|
-
[Unreleased]: https://github.com/ljchang/multimodalsrm/compare/v0.3.
|
|
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
|
|
459
472
|
[0.3.0]: https://github.com/ljchang/multimodalsrm/compare/v0.2.0...v0.3.0
|
|
460
473
|
[0.2.0]: https://github.com/ljchang/multimodalsrm/compare/v0.1.0...v0.2.0
|
|
461
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.3.
|
|
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.3.
|
|
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.3.
|
|
78
|
+
python -m pip install "multimodalsrm==0.3.1"
|
|
77
79
|
# Optional Bayesian runtime:
|
|
78
|
-
python -m pip install "multimodalsrm[bayesian]==0.3.
|
|
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.3.
|
|
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.3.
|
|
27
|
+
python -m pip install "multimodalsrm==0.3.1"
|
|
26
28
|
# Optional Bayesian runtime:
|
|
27
|
-
python -m pip install "multimodalsrm[bayesian]==0.3.
|
|
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.
|
|
@@ -593,7 +593,7 @@ target. Existing MAP `transform` remains a fixed-parameter operation.
|
|
|
593
593
|
|
|
594
594
|
## whittle_estimate
|
|
595
595
|
|
|
596
|
-
`from multimodalsrm.bayesian import whittle_estimate` · [Source](https://github.com/ljchang/multimodalsrm/blob/main/src/multimodalsrm/bayesian/whittle.py#
|
|
596
|
+
`from multimodalsrm.bayesian import whittle_estimate` · [Source](https://github.com/ljchang/multimodalsrm/blob/main/src/multimodalsrm/bayesian/whittle.py#L852)
|
|
597
597
|
|
|
598
598
|
```python
|
|
599
599
|
whittle_estimate(
|
|
@@ -680,6 +680,7 @@ One dataset drawn from the model at parameters `v` and the sample times of `data
|
|
|
680
680
|
|
|
681
681
|
Generated in the time domain: a fresh Matern-3/2 latent per run passed
|
|
682
682
|
through the responses, plus white and Ornstein-Uhlenbeck private noise.
|
|
683
|
+
Samples masked in `data` are masked in the result.
|
|
683
684
|
|
|
684
685
|
### WhittleEstimator.fit
|
|
685
686
|
|
|
@@ -11,6 +11,8 @@ MAP is an estimation method. `linear_algebra` selects a GP computational backend
|
|
|
11
11
|
| R-MSRM regularized fit | Shared latent grid (`latent_dt`), individual mappings, fixed or estimated parametric responses; fit, infer, target-excluded prediction and calibration | Regularization and response constraints influence identifiability; no posterior uncertainty claim |
|
|
12
12
|
| GP MAP, `linear_algebra="dense"` or `"grouped"` | Continuous Matérn GP; analytic Identity/Gaussian; explicit quadrature for Gamma/DoubleGamma/BatemanSCR | Grouped algebra preserves the modeled likelihood; it is not a different prior |
|
|
13
13
|
| GP MAP, `linear_algebra="state_space"` | Explicit opt-in Identity, Gaussian, fixed integer-shape Gamma/DoubleGamma, and learned BatemanSCR; independent noise | Response approximations and restored tails need the declared covariance error tolerance; no state-space posterior sampling |
|
|
14
|
+
| R-MSRM `estimate_responses` | Shared response kernels relative to a fixed reference modality, estimated in the frequency domain with the latent left free at every frequency; every response family; modalities with fewer features than factors; participants missing a modality; phase-randomization coupling test | Simulations only. The coupling test's false-positive rate is measured for two modalities, two factors, one run and complete participants. Missing samples are replaced by the feature mean. Not for participant-specific responses |
|
|
15
|
+
| GP `whittle_estimate` | Peak delay and relative width of shared responses from a debiased, coherent Whittle likelihood; white or white-plus-slow private noise; nested sampling rates; inverse-Hessian or parametric-bootstrap standard errors; coupling test and a status | Simulations only. A block of missing samples biases widths upward and makes the Hessian standard errors too small. Every modality must be on a regular grid and present in every run. It estimates timing, not predictions or latent trajectories |
|
|
14
16
|
| GP `linear_algebra="spectral"` | Explicit finite-basis approximation retained from the source implementation | Rank/padding and boundary errors need separate qualification; not the full supported posterior workflow below |
|
|
15
17
|
| Full GP posterior training and joint updates | Dense/grouped; independent observation noise; no run baselines; fixed unit GP variance; fixed or learned single shared GP timescale | No sampled-kernel posterior, participant response pooling, factor-specific timescales or state-space sampling |
|
|
16
18
|
| Joint posterior trajectories | `sample_latent` on supported training, donor-update, calibrated and independent-participant posterior models | Request all times for a joint calculation together; separate calls do not preserve cross-call correlation |
|
|
@@ -31,6 +33,8 @@ method, configuration and performance checks.
|
|
|
31
33
|
|
|
32
34
|
A learned `length_scale` uses a bounded physical `Prior` with finite, strictly positive bounds. One timescale is shared across factors and runs; loadings set amplitude while GP variance stays one. Learning the timescale changes the inference target and requires new convergence/identification checks. MAP options outside the full posterior scope, such as fixed run-baseline priors, must not be assumed to carry over to joint posterior updates.
|
|
33
35
|
|
|
36
|
+
`estimate_responses` and `whittle_estimate` are estimators of response timing, not backends: they are separate from `linear_algebra="spectral"`, which approximates the exact GP likelihood on a finite basis. See [frequency-domain estimation](concepts.md#estimating-response-timing-in-the-frequency-domain).
|
|
37
|
+
|
|
34
38
|
## Responses and workflow semantics
|
|
35
39
|
|
|
36
40
|
`Response(..., estimate=True, fixed={...})` estimates only unfixed parameters, within explicit bounds. For example, `Response(Gaussian(width=0.3), estimate=True, fixed={"width": 0.3}, bounds={"lag": (-1.5, 1.5)}, pooling="shared")` estimates a shared lag while preserving width. Response support can remove edge observations; inspect output validity masks rather than treating every requested time as observed or usable.
|
|
@@ -54,6 +58,8 @@ Existing `.calibrate` and `.transform` APIs retain their MAP meanings. Do not in
|
|
|
54
58
|
|
|
55
59
|
Both models estimate relative, not absolute, modality timing. `scan_lags` proposes starting lags and narrow bounds from the observations; `timing_report()` reports peak delays relative to a reference modality (by default the first), with the subtracted clock origin. The scan can fail at very low signal-to-noise and can alias by one period on a near-periodic signal; it reports both conditions, and its thresholds come from synthetic data. On the one empirical recording tested it found no reliable delay, and scan initialization then leaves the configured lags unchanged. A reported delay is a relative model quantity, not a physiological latency.
|
|
56
60
|
|
|
61
|
+
The two frequency-domain estimators report a coupling test with their timing. A lag whose test does not reach significance is not evidence of a small lag: it is the best-fitting lag of noise. Treat `p_value` (R-MSRM) and the `status` of each `Timing` (GP-MSRM) as part of the estimate.
|
|
62
|
+
|
|
57
63
|
## Interpreting outputs
|
|
58
64
|
|
|
59
65
|
Inspect `converged_` for R fits and `map_diagnostics_` for GP MAP fits. R convergence requires a settled response (`kernel_tol`) as well as a small objective decrement. A GP MAP point meets its gradient tolerance when the largest physical projected gradient is below `physical_gradient_tolerance`, or below `relative_gradient_tolerance` times the objective's magnitude; `gradient_criterion` records which applied, and `relative_projected_gradient` lets you compare starts on recordings of different size. Posterior fits require `sampling_diagnostics_`, including raw parameters, reporting orientation, divergences, tree depth and BFMI. A successful API call, archive replay or test run does not establish convergence. Marginal intervals do not automatically form simultaneous trajectory bands.
|
|
@@ -9,6 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.3.1] — 2026-11-29
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- **`whittle_estimate(bootstrap=...)` failed on data with masked samples.** The
|
|
17
|
+
simulated datasets the bootstrap refits were built without the recording's
|
|
18
|
+
`TimeSeries` mask, so they no longer matched its layout and the fit stopped
|
|
19
|
+
with "data structure differs from the data the estimator was built with".
|
|
20
|
+
Any masked sample triggered it; data whose missing samples were removed
|
|
21
|
+
outright were unaffected, which is how the tests missed it. Replicates now
|
|
22
|
+
keep the recording's mask and feature columns.
|
|
23
|
+
|
|
12
24
|
## [0.3.0] — 2026-11-29
|
|
13
25
|
|
|
14
26
|
### Added
|
|
@@ -457,7 +469,8 @@ Test evidence belongs to the integration record and corresponding CI run; this
|
|
|
457
469
|
changelog makes no calibration or recovery claim. Learned FIR responses remain
|
|
458
470
|
deferred.
|
|
459
471
|
|
|
460
|
-
[Unreleased]: https://github.com/ljchang/multimodalsrm/compare/v0.3.
|
|
472
|
+
[Unreleased]: https://github.com/ljchang/multimodalsrm/compare/v0.3.1...HEAD
|
|
473
|
+
[0.3.1]: https://github.com/ljchang/multimodalsrm/compare/v0.3.0...v0.3.1
|
|
461
474
|
[0.3.0]: https://github.com/ljchang/multimodalsrm/compare/v0.2.0...v0.3.0
|
|
462
475
|
[0.2.0]: https://github.com/ljchang/multimodalsrm/compare/v0.1.0...v0.2.0
|
|
463
476
|
[0.1.0]: https://github.com/ljchang/multimodalsrm/releases/tag/v0.1.0
|
|
@@ -59,6 +59,25 @@ Only the *differences* between modality delays are estimated: delaying every res
|
|
|
59
59
|
|
|
60
60
|
Learned FIR responses are deferred. The presence of an internal kernel type does not imply it supports every inference method.
|
|
61
61
|
|
|
62
|
+
## Estimating response timing in the frequency domain
|
|
63
|
+
|
|
64
|
+
Fitting a model is not the only way to estimate a response. Two functions estimate **shared response timing** directly from how the modalities' signals relate across frequencies, and both report whether there is any timing relation to estimate.
|
|
65
|
+
|
|
66
|
+
The idea is the same in both. A response delays and smooths the latent signal. A delay shifts every frequency's phase by an amount that grows with frequency, and smoothing attenuates high frequencies more than low ones. So one modality's response *relative to another* can be read from how the phase and amplitude of their shared signal differ from one frequency to the next.
|
|
67
|
+
|
|
68
|
+
| | `estimate_responses` | `whittle_estimate` |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| Model | R-MSRM | GP-MSRM (`multimodalsrm.bayesian`) |
|
|
71
|
+
| Why use it | In `fit`, the latent penalty takes part in the response estimate: a stronger penalty shrinks the fitted difference between two modalities' widths. Here the latent is left free at every frequency, so the penalty does not enter | The exact GP likelihood factorizes a run's whole covariance, which limits it to small problems. This likelihood is written one frequency at a time and its cost grows linearly with the number of samples |
|
|
72
|
+
| What it returns | A response kernel per estimated modality, relative to a fixed reference modality | Each estimated modality's peak delay and width relative to a reference, with standard errors and a status |
|
|
73
|
+
| How to use the result | Fit with the responses fixed: `result.fixed_responses(responses)` | Report the timing, or continue to the exact MAP with `WhittleEstimator.exact_map` |
|
|
74
|
+
|
|
75
|
+
**Only relative timing is identified.** Both need a reference modality and report the others relative to it. With Gaussian responses the data determine the lag difference and the difference of squared widths, not each width separately.
|
|
76
|
+
|
|
77
|
+
**Check the coupling test before reading an estimate.** Either function will return a lag and a width even when two modalities share nothing, because noise always has some best-fitting lag. With `surrogates > 0` each estimated modality is compared with surrogate copies of itself whose phases are randomized, which keeps its spectrum and destroys any timing relation to the other modalities. A small `p` means the data fit better than the surrogates do. A large `p` means no timing relation was detected, and the estimate should not be interpreted. `whittle_estimate` labels timing "established" only when that test passes and no response parameter rests on a bound.
|
|
78
|
+
|
|
79
|
+
Both are validated on simulations only, and both require responses shared across participants. Neither is the GP `linear_algebra="spectral"` backend, which is a finite-basis approximation of the same exact likelihood. The [settings guide](api-guide.md#estimating-shared-responses-in-the-frequency-domain) lists arguments, measured accuracy and limits; the [mathematics](model-mathematics.md#frequency-domain-estimation-of-responses) gives the likelihoods; the [tutorials](tutorials.md#frequency-domain-response-estimation) run both on synthetic data.
|
|
80
|
+
|
|
62
81
|
## Evaluate the claim you want to make
|
|
63
82
|
|
|
64
83
|
Held-out prediction asks whether available observations predict excluded targets. Response recovery asks whether fitted filter parameters match a known generating mechanism. Convergence asks whether numerical optimization or sampling adequately explored the intended target. These require different evidence.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Installation
|
|
2
2
|
|
|
3
|
-
Use Python 3.12 or later. Python 3.12 is the version currently exercised by package CI. Install version `0.3.
|
|
3
|
+
Use Python 3.12 or later. Python 3.12 is the version currently exercised by package CI. Install version `0.3.1` from PyPI, or use a source checkout for development and the example scripts.
|
|
4
4
|
|
|
5
5
|
## Install the release
|
|
6
6
|
|
|
@@ -9,13 +9,13 @@ Create and activate a dedicated environment, then install the base model:
|
|
|
9
9
|
```sh
|
|
10
10
|
python3.12 -m venv .venv
|
|
11
11
|
source .venv/bin/activate
|
|
12
|
-
python -m pip install "multimodalsrm==0.3.
|
|
12
|
+
python -m pip install "multimodalsrm==0.3.1"
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
For GP-MSRM, add the Bayesian extra:
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
|
-
python -m pip install "multimodalsrm[bayesian]==0.3.
|
|
18
|
+
python -m pip install "multimodalsrm[bayesian]==0.3.1"
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
On Windows PowerShell, activate with `.venv\Scripts\Activate.ps1`. The following examples require a source checkout because the scripts are not installed as commands.
|
|
@@ -25,7 +25,7 @@ On Windows PowerShell, activate with `.venv\Scripts\Activate.ps1`. The following
|
|
|
25
25
|
```sh
|
|
26
26
|
git clone https://github.com/ljchang/multimodalsrm.git
|
|
27
27
|
cd multimodalsrm
|
|
28
|
-
git checkout v0.3.
|
|
28
|
+
git checkout v0.3.1
|
|
29
29
|
python3.12 -m venv .venv
|
|
30
30
|
source .venv/bin/activate
|
|
31
31
|
python -m pip install -e .
|
|
@@ -10,8 +10,8 @@ Use it to fit a common representation, infer latent responses on new recordings,
|
|
|
10
10
|
[How it works](concepts.md){ .md-button }
|
|
11
11
|
[API and choices](api-guide.md){ .md-button }
|
|
12
12
|
|
|
13
|
-
!!! info "Version 0.3.
|
|
14
|
-
Install the package from PyPI. These pages follow `main`; use the `v0.3.
|
|
13
|
+
!!! info "Version 0.3.1"
|
|
14
|
+
Install the package from PyPI. These pages follow `main`; use the `v0.3.1` source tag when matching an analysis to this release.
|
|
15
15
|
|
|
16
16
|
## Choose a model
|
|
17
17
|
|
|
@@ -125,6 +125,97 @@ MAP adds the negative log prior and finds a parameter point. Posterior inference
|
|
|
125
125
|
|
|
126
126
|
`linear_algebra` chooses how these calculations are carried out. Dense and grouped paths target the same chosen covariance; state-space and spectral paths have explicitly documented response/approximation restrictions. Choosing a backend is independent of choosing MAP versus posterior inference.
|
|
127
127
|
|
|
128
|
+
## Frequency-domain estimation of responses
|
|
129
|
+
|
|
130
|
+
Both estimators work with windowed Fourier coefficients of each series. Write $H_m(\omega)=\int h_m(u)e^{-i\omega u}\,du$ for the transfer function of modality $m$'s response. A delay $d$ contributes the factor $e^{-i\omega d}$ and a Gaussian of width $s$ the factor $e^{-s^2\omega^2/2}$, which is why timing and smoothing are separable across frequencies.
|
|
131
|
+
|
|
132
|
+
### R-MSRM: `estimate_responses`
|
|
133
|
+
|
|
134
|
+
Each run is split in two. The model is fitted with every response held fixed on one half, giving loadings $\widehat W_{im}$, and the response is estimated on the other half; then the halves are exchanged. Loadings of a weakly coupled modality are regressions on a latent built under the assumed responses, so estimating on the same data would carry the assumed lag into the estimate.
|
|
135
|
+
|
|
136
|
+
Let $y_{im}(\omega)$ be the windowed transform of participant $i$'s standardized features in modality $m$ on the held-out half. The model at each frequency is
|
|
137
|
+
|
|
138
|
+
$$
|
|
139
|
+
y_{im}(\omega)=a_m(\omega)\,\widehat W_{im}\,z(\omega)+\varepsilon_{im}(\omega),
|
|
140
|
+
\qquad a_m(\omega)=g_m\,\widetilde H_m(\omega),
|
|
141
|
+
$$
|
|
142
|
+
|
|
143
|
+
with one latent vector $z(\omega)$ shared by everyone, a gain $g_m$ per modality and noise of variance $v_m$ (one per frequency band with `noise_bands`). The latent has a free covariance at every frequency and is profiled out. With
|
|
144
|
+
|
|
145
|
+
$$
|
|
146
|
+
r(\omega)=\sum_m\frac{\overline{a_m}}{v_m}\sum_i\widehat W_{im}^{\mathsf T}y_{im}(\omega),
|
|
147
|
+
\qquad
|
|
148
|
+
Q(\omega)=\sum_m\frac{|a_m|^2}{v_m}\sum_i\widehat W_{im}^{\mathsf T}\widehat W_{im},
|
|
149
|
+
$$
|
|
150
|
+
|
|
151
|
+
and the fitted latent's standardized energy $e(\omega)=r^{\mathsf H}Q^{+}r$, the objective minimized over response parameters, gains and noise levels is
|
|
152
|
+
|
|
153
|
+
$$
|
|
154
|
+
\sum_\omega\left[\sum_m n_m\log v_m+\sum_{i,m}\frac{\lVert y_{im}(\omega)\rVert^2}{v_m}
|
|
155
|
+
+\rho\bigl(e(\omega)\bigr)\right],
|
|
156
|
+
\qquad
|
|
157
|
+
\rho(e)=\begin{cases}\log e+1-e,&e>1\\0,&e\le 1,\end{cases}
|
|
158
|
+
$$
|
|
159
|
+
|
|
160
|
+
where $n_m$ counts modality $m$'s features over participants. Nothing is inverted per modality, so a modality may have fewer features than the model has factors. The reference modality's response and gain are fixed, which is what makes the others identified.
|
|
161
|
+
|
|
162
|
+
A window mixes neighbouring frequencies, so the coefficient at $\omega$ carries the response near $\omega$, not at it. $\widetilde H_m$ is therefore the part of the windowed coefficient that is coherent with the windowed latent,
|
|
163
|
+
|
|
164
|
+
$$
|
|
165
|
+
\widetilde H_m(\omega)=
|
|
166
|
+
\frac{\sum_j|G(\delta_j)|^2\,S(\omega+\delta_j)\,e^{i\delta_jd_m}\,H_m(\omega+\delta_j)}
|
|
167
|
+
{\sum_j|G(\delta_j)|^2\,S(\omega+\delta_j)},
|
|
168
|
+
$$
|
|
169
|
+
|
|
170
|
+
with $G$ the window's transform, $d_m$ the delay by which modality $m$'s window is shifted and $S$ the latent's spectrum, taken flat in the first round and fitted from the previous round after that. Without this a wide response on a short recording is estimated too narrow.
|
|
171
|
+
|
|
172
|
+
### GP-MSRM: `whittle_estimate`
|
|
173
|
+
|
|
174
|
+
For series $a$ with window $g_a$ and $n$ samples, let $J_a(\omega_k)=n^{-1/2}\sum_t g_a(t)\,x_a(t)\,e^{-i\omega_kt}$. The exact likelihood treats all observations of a run jointly. The Whittle approximation treats coefficients at different frequencies as independent, so the negative log likelihood is a sum over frequencies,
|
|
175
|
+
|
|
176
|
+
$$
|
|
177
|
+
\sum_k\left[\log\bigl|\Gamma(\omega_k)\bigr|
|
|
178
|
+
+\bigl(J(\omega_k)-\mu(\omega_k)\bigr)^{\mathsf H}\Gamma(\omega_k)^{-1}\bigl(J(\omega_k)-\mu(\omega_k)\bigr)\right],
|
|
179
|
+
$$
|
|
180
|
+
|
|
181
|
+
to which the same priors as the MAP objective are added. $\mu$ is each series' offset times its window's transform. Three choices define $\Gamma$.
|
|
182
|
+
|
|
183
|
+
**Debiased moments.** The second moments are those of the finite, windowed, possibly masked record, not the continuous spectrum:
|
|
184
|
+
|
|
185
|
+
$$
|
|
186
|
+
\operatorname E\bigl[J_a(\omega_k)\overline{J_b(\omega_k)}\bigr]
|
|
187
|
+
=\sum_\tau C_{ab}(\tau)\,r_{ab}(\tau)\,e^{-i\omega_k\tau},
|
|
188
|
+
\qquad
|
|
189
|
+
r_{ab}(\tau)=\frac1{\sqrt{n_an_b}}\sum_t g_a(t+\tau)g_b(t),
|
|
190
|
+
$$
|
|
191
|
+
|
|
192
|
+
where $C_{ab}$ is the model's time-domain covariance from the section above. Windows, missing samples and aliasing therefore cost no bias in the moments themselves.
|
|
193
|
+
|
|
194
|
+
**Alias sets.** A modality sampled every $R$ steps of the finest clock has coefficients that repeat in the frequency index, so coefficients that alias onto one another are modelled jointly as one set and different sets are treated as independent. This requires the slowest sampling interval to be a whole multiple of every other.
|
|
195
|
+
|
|
196
|
+
**Coherent signal moments.** On a finite record the signal's cross-moments are not of rank one per latent factor: a response that changes within one resolution bandwidth leaves a remainder that a per-frequency Gaussian reads as an extra shared component, which creates a second optimum with inflated loadings and a wide response. Each signal moment is replaced by its part coherent with the latent's own finite-record coefficient $J_z$,
|
|
197
|
+
|
|
198
|
+
$$
|
|
199
|
+
\Gamma^{\text{sig}}_{bc}\;\longrightarrow\;
|
|
200
|
+
\frac{\Gamma_{bz}\,\overline{\Gamma_{cz}}}{\Gamma_{zz}},
|
|
201
|
+
$$
|
|
202
|
+
|
|
203
|
+
which removes that optimum for complete data. A large block of missing samples brings it back.
|
|
204
|
+
|
|
205
|
+
Private noise is white, or with `noise="diag_ou"` white plus one Ornstein–Uhlenbeck process per feature, with a variance per participant and modality and a length scale per modality.
|
|
206
|
+
|
|
207
|
+
Standard errors come from the inverse Hessian at the estimate with the factor rotations, along which the objective is flat, removed. Peak delay and relative width follow by the delta method. The relative width of modality $m$ is $\operatorname{sign}(\Delta)\sqrt{|\Delta|}$ with $\Delta=s_m^2-s_{\text{ref}}^2$ the difference of squared response spreads; its error is taken from $\Delta$'s and is undefined where the spreads are equal.
|
|
208
|
+
|
|
209
|
+
### The coupling test
|
|
210
|
+
|
|
211
|
+
Both estimators test each estimated modality against phase-randomized surrogates. A surrogate multiplies that modality's coefficients by $e^{i\varphi(\omega)}$ with an independent uniform phase per frequency, which keeps its spectrum and its agreement across participants and features and removes any phase relation to the other modalities. The data and every surrogate are refitted in full, and
|
|
212
|
+
|
|
213
|
+
$$
|
|
214
|
+
p=\frac{1+\#\{\text{surrogate objectives}\le\text{observed objective}\}}{S+1}
|
|
215
|
+
$$
|
|
216
|
+
|
|
217
|
+
for $S$ surrogates, so at least 19 are needed to reach $p=0.05$. The GP test randomizes around each series' fitted mean on the untapered likelihood. The R-MSRM test uses a sine window, every second frequency, and surrogates of both halves of each run with each half's loadings re-paired to its surrogate, because loadings pair the modalities' factors by their half's chance agreement.
|
|
218
|
+
|
|
128
219
|
## Connect the math to a modeling decision
|
|
129
220
|
|
|
130
221
|
| Scientific or computational choice | API setting | What changes |
|
|
@@ -119,6 +119,10 @@ print(lag_only.free_parameters) # ('lag',)
|
|
|
119
119
|
|
|
120
120
|
The spectral GP path supports its own restricted Identity/Gaussian approximation. This table does not override inference restrictions on noise, anchors, baselines or learned GP timescales; see [capabilities](capabilities.md) and [SCR examples](scr-responses.md).
|
|
121
121
|
|
|
122
|
+
### Responses in the frequency domain
|
|
123
|
+
|
|
124
|
+
Every response also has a transfer function, its Fourier transform: the factor by which it scales and shifts each frequency of the latent. A lag turns the phase by an amount proportional to frequency, and a wider response attenuates high frequencies more. `transfer_function(kernel, omega)` returns it for any family, in closed form for Identity, Gaussian and Gamma and by numerical integration otherwise. [`estimate_responses`](concepts.md#estimating-response-timing-in-the-frequency-domain) estimates response parameters from these phase and amplitude differences between modalities.
|
|
125
|
+
|
|
122
126
|
## The latent GP kernel: Matérn-3/2
|
|
123
127
|
|
|
124
128
|
The GP model has one implemented latent covariance family:
|
|
@@ -33,6 +33,32 @@ JAX_ENABLE_X64=true python examples/scr_quickstart.py --gp state_space
|
|
|
33
33
|
|
|
34
34
|
The [SCR example](https://github.com/ljchang/multimodalsrm/blob/main/examples/scr_quickstart.py) uses `BatemanSCR` in a shared response configuration for R and GP MAP. It checks target-excluded predictions and GP archive replay using synthetic recordings. See the [SCR guide](scr-responses.md) for time-constant bounds, priors, finite-support handling and migration from Bach.
|
|
35
35
|
|
|
36
|
+
## Frequency-domain response estimation
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
python examples/r_frequency_domain.py
|
|
40
|
+
JAX_ENABLE_X64=true python examples/gp_frequency_domain.py
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The [R example](https://github.com/ljchang/multimodalsrm/blob/main/examples/r_frequency_domain.py) simulates eight participants and two modalities, one of which sees the shared latent through a Gaussian response of width 3 s that lags the other by 2 s. `estimate_responses` returns the width and lag relative to the reference modality and a coupling test. The script then repeats the estimate on data in which the two modalities share nothing, and finally fits the model with the responses fixed at the estimate. It prints, for example:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
coupled: width 2.97 s, lag 2.05 s, coupling test p = 0.025 (z = -3.4)
|
|
47
|
+
uncoupled: width 3.86 s, lag -6.57 s, coupling test p = 0.150 (z = -1.0)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The second line is the point of the test: an uncoupled modality still gets a width and a lag, and only the large `p` says they mean nothing. With 39 surrogates the smallest attainable `p` is 0.025.
|
|
51
|
+
|
|
52
|
+
The [GP example](https://github.com/ljchang/multimodalsrm/blob/main/examples/gp_frequency_domain.py) draws the latent from the model's own Matérn-3/2 prior for four participants and estimates a Gaussian response that leads the reference by 1.5 s. `whittle_estimate` prints each estimated modality's peak delay and relative width with standard errors, the coupling test, and whether the timing is established:
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
slow: coupling test p = 0.050 (19 surrogates)
|
|
56
|
+
peak delay -1.583 (SE 0.126)
|
|
57
|
+
relative width 2.110 (SE 0.179)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Both scripts take seconds. See [how the estimators work](concepts.md#estimating-response-timing-in-the-frequency-domain) and the [settings guide](api-guide.md#estimating-shared-responses-in-the-frequency-domain) for arguments and limits.
|
|
61
|
+
|
|
36
62
|
## Extending beyond the examples
|
|
37
63
|
|
|
38
64
|
Consult the [capability matrix](capabilities.md) for full posterior training, response quadrature, a learned shared GP timescale, joint donor updates, posterior participant calibration and joint latent trajectories. These methods need an appropriate sampling budget and per-fit diagnostic assessment; they are deliberately outside the short MAP demonstration. The [migration guide](migration.md) distinguishes fitted archives from source-bound warmup checkpoints and R pickle/joblib artifacts.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"""Estimate GP response timing in the frequency domain, on synthetic data.
|
|
2
|
+
|
|
3
|
+
Two modalities share a latent signal. The slow one sees it through a Gaussian
|
|
4
|
+
response of width 2.2 s that leads the fast one by 1.5 s. ``whittle_estimate``
|
|
5
|
+
reports the slow modality's peak delay and width relative to the fast one, with
|
|
6
|
+
standard errors, and a coupling test that decides whether the timing is
|
|
7
|
+
established.
|
|
8
|
+
|
|
9
|
+
Run after installing multimodalsrm[bayesian] with JAX_ENABLE_X64=true. Takes
|
|
10
|
+
about ten seconds, most of it the coupling test.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import numpy as np
|
|
14
|
+
|
|
15
|
+
from multimodalsrm import Gaussian, Identity, Response, TimeSeries
|
|
16
|
+
from multimodalsrm.bayesian import BayesianPriors, Prior, whittle_estimate
|
|
17
|
+
|
|
18
|
+
STEP = 0.05 # the latent is simulated on this finer clock, in seconds
|
|
19
|
+
LENGTH_SCALE = 3.0
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def matern_latent(rng, times, factors):
|
|
23
|
+
"""Exact draws of a Matern-3/2 process, the latent prior of GP-MSRM."""
|
|
24
|
+
rate = np.sqrt(3.0) / LENGTH_SCALE
|
|
25
|
+
decay = np.exp(-rate * STEP)
|
|
26
|
+
transition = decay * np.array([[1 + rate * STEP, STEP], [-(rate**2) * STEP, 1 - rate * STEP]])
|
|
27
|
+
stationary = np.diag([1.0, rate**2])
|
|
28
|
+
noise = np.linalg.cholesky(stationary - transition @ stationary @ transition.T)
|
|
29
|
+
state = rng.normal(size=(factors, 2)) * np.sqrt(np.diag(stationary))
|
|
30
|
+
path = np.empty((len(times), factors))
|
|
31
|
+
for i in range(len(times)):
|
|
32
|
+
path[i] = state[:, 0]
|
|
33
|
+
state = state @ transition.T + rng.normal(size=(factors, 2)) @ noise.T
|
|
34
|
+
return path
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def respond(kernel, fine_times, path, times):
|
|
38
|
+
"""The latent seen through a response, sampled at ``times``."""
|
|
39
|
+
if isinstance(kernel, Identity):
|
|
40
|
+
return np.stack([np.interp(times, fine_times, column) for column in path.T], axis=1)
|
|
41
|
+
lo, hi = kernel.support
|
|
42
|
+
lags = np.arange(lo, hi + STEP, STEP)
|
|
43
|
+
weights = kernel.evaluate(lags) * STEP
|
|
44
|
+
source = times[:, None] - lags[None, :]
|
|
45
|
+
return np.stack([np.interp(source, fine_times, column) @ weights for column in path.T], axis=1)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def simulate(seed, participants=4, duration=200.0, factors=2):
|
|
49
|
+
"""Each modality: (true response, features, share of variance that is shared)."""
|
|
50
|
+
design = {"fast": (Identity(), 5, 0.30), "slow": (Gaussian(2.2, -1.5), 4, 0.35)}
|
|
51
|
+
rng = np.random.default_rng(seed)
|
|
52
|
+
fine_times = np.arange(-40.0, duration + 40.0, STEP)
|
|
53
|
+
latent = matern_latent(rng, fine_times, factors)
|
|
54
|
+
times = np.arange(0.0, duration, 1.0)
|
|
55
|
+
data = {}
|
|
56
|
+
for modality, (kernel, features, share) in design.items():
|
|
57
|
+
signal = respond(kernel, fine_times, latent, times)
|
|
58
|
+
signal = signal / signal.std(0)
|
|
59
|
+
for index in range(participants):
|
|
60
|
+
loadings = rng.normal(size=(features, factors)) * np.sqrt(share / factors)
|
|
61
|
+
noise = np.sqrt(1 - share) * rng.normal(size=(len(times), features))
|
|
62
|
+
values = signal @ loadings.T + 0.3 * rng.normal(size=features) + noise
|
|
63
|
+
data.setdefault(f"p{index}", {}).setdefault("run", {})[modality] = TimeSeries(
|
|
64
|
+
values, times
|
|
65
|
+
)
|
|
66
|
+
return data
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def main():
|
|
70
|
+
responses = {
|
|
71
|
+
# The reference: timing is reported relative to this modality.
|
|
72
|
+
"fast": Response(Identity(), estimate=False),
|
|
73
|
+
"slow": Response(
|
|
74
|
+
Gaussian(1.65, 0.0), estimate=True, bounds={"width": (0.5, 6.0), "lag": (-8.0, 12.0)}
|
|
75
|
+
),
|
|
76
|
+
}
|
|
77
|
+
priors = BayesianPriors(
|
|
78
|
+
noise=Prior.lognormal(np.log(0.5), 1.0),
|
|
79
|
+
loading_sd=1.0,
|
|
80
|
+
offset_sd=1.0,
|
|
81
|
+
filters={"slow": {"width": Prior.lognormal(0.5, 1.0), "lag": Prior.normal(0.0, 5.0)}},
|
|
82
|
+
)
|
|
83
|
+
result = whittle_estimate(
|
|
84
|
+
simulate(1),
|
|
85
|
+
features=2,
|
|
86
|
+
responses=responses,
|
|
87
|
+
priors=priors,
|
|
88
|
+
length_scale=LENGTH_SCALE,
|
|
89
|
+
noise="white", # the simulated private noise is white
|
|
90
|
+
surrogates=19, # the fewest that can reach p = 0.05
|
|
91
|
+
random_state=0,
|
|
92
|
+
)
|
|
93
|
+
print(result.summary())
|
|
94
|
+
delay, width = result.peak_delay["slow"], result.relative_width["slow"]
|
|
95
|
+
low, high = delay.interval(0.90)
|
|
96
|
+
print(f"Peak delay {delay.value:.2f} s, 90% interval {low:.2f} to {high:.2f} (true -1.50)")
|
|
97
|
+
print(f"Relative width {width.value:.2f} s (true 2.20); established: {delay.established}")
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
if __name__ == "__main__":
|
|
101
|
+
main()
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""Estimate a shared response in the frequency domain with R-MSRM, on synthetic data.
|
|
2
|
+
|
|
3
|
+
Two modalities share a latent signal. The slow one sees it through a Gaussian
|
|
4
|
+
response of width 3 s that lags the fast one by 2 s. ``estimate_responses``
|
|
5
|
+
recovers that width and lag relative to the fast modality, and its coupling
|
|
6
|
+
test says whether the two modalities share any timing relation at all. A second
|
|
7
|
+
dataset in which the modalities share nothing shows what the test returns then.
|
|
8
|
+
|
|
9
|
+
Run after installing multimodalsrm. Takes about half a minute.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
import numpy as np
|
|
13
|
+
|
|
14
|
+
from multimodalsrm import (
|
|
15
|
+
Gaussian,
|
|
16
|
+
Identity,
|
|
17
|
+
MultimodalSRM,
|
|
18
|
+
Response,
|
|
19
|
+
TimeSeries,
|
|
20
|
+
estimate_responses,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
STEP = 0.1 # the latent is simulated on this finer clock, in seconds
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def smooth_latent(rng, duration, factors, timescale=4.0, margin=40.0):
|
|
27
|
+
"""A smooth random signal per factor, with a correlation time of ``timescale``."""
|
|
28
|
+
times = np.arange(-margin, duration + margin, STEP)
|
|
29
|
+
keep = np.exp(-STEP / timescale)
|
|
30
|
+
path = rng.normal(size=(len(times), factors))
|
|
31
|
+
for _ in range(2): # two passes make the path differentiable
|
|
32
|
+
for i in range(1, len(times)):
|
|
33
|
+
path[i] = keep * path[i - 1] + (1 - keep) * path[i]
|
|
34
|
+
return times, (path - path.mean(0)) / path.std(0)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def respond(kernel, fine_times, path, times):
|
|
38
|
+
"""The latent seen through a response, sampled at ``times``."""
|
|
39
|
+
if isinstance(kernel, Identity):
|
|
40
|
+
return np.stack([np.interp(times, fine_times, column) for column in path.T], axis=1)
|
|
41
|
+
lo, hi = kernel.support
|
|
42
|
+
lags = np.arange(lo, hi + STEP, STEP)
|
|
43
|
+
weights = kernel.evaluate(lags) * STEP
|
|
44
|
+
source = times[:, None] - lags[None, :]
|
|
45
|
+
return np.stack([np.interp(source, fine_times, column) @ weights for column in path.T], axis=1)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def simulate(seed, *, coupled, participants=8, duration=300.0, factors=2):
|
|
49
|
+
"""Each modality: (true response, features, share of variance that is shared)."""
|
|
50
|
+
design = {"fast": (Identity(), 12, 0.4), "slow": (Gaussian(3.0, 2.0), 10, 0.6)}
|
|
51
|
+
rng = np.random.default_rng(seed)
|
|
52
|
+
fine_times, shared = smooth_latent(rng, duration, factors)
|
|
53
|
+
times = np.arange(0.5, duration, 1.0)
|
|
54
|
+
data = {}
|
|
55
|
+
for modality, (kernel, features, share) in design.items():
|
|
56
|
+
# Without coupling each modality follows a latent of its own.
|
|
57
|
+
path = shared if coupled else smooth_latent(rng, duration, factors)[1]
|
|
58
|
+
signal = respond(kernel, fine_times, path, times)
|
|
59
|
+
for index in range(participants):
|
|
60
|
+
mixed = signal @ rng.normal(size=(features, factors)).T
|
|
61
|
+
values = np.sqrt(share) * mixed / mixed.std(0)
|
|
62
|
+
values += np.sqrt(1 - share) * rng.normal(size=mixed.shape)
|
|
63
|
+
data.setdefault(f"p{index}", {}).setdefault("run", {})[modality] = TimeSeries(
|
|
64
|
+
values, times
|
|
65
|
+
)
|
|
66
|
+
return data
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def main():
|
|
70
|
+
responses = {
|
|
71
|
+
# The reference: its response is held fixed and the other is read relative to it.
|
|
72
|
+
"fast": Response(Identity(), estimate=False),
|
|
73
|
+
"slow": Response(Gaussian(1.5, 0.0), bounds={"lag": (-10.0, 10.0), "width": (0.2, 15.0)}),
|
|
74
|
+
}
|
|
75
|
+
model = MultimodalSRM(features=2, latent_dt=1.0, responses=responses, random_state=0)
|
|
76
|
+
for label, coupled in (("coupled", True), ("uncoupled", False)):
|
|
77
|
+
data = simulate(1, coupled=coupled)
|
|
78
|
+
result = estimate_responses(model, data, surrogates=39, random_state=0)
|
|
79
|
+
kernel, test = result.kernels["slow"], result.coupling["slow"]
|
|
80
|
+
print(
|
|
81
|
+
f"{label}: width {kernel.width:.2f} s, lag {kernel.lag:.2f} s, "
|
|
82
|
+
f"coupling test p = {test['p_value']:.3f} (z = {test['z']:.1f})"
|
|
83
|
+
)
|
|
84
|
+
print("True response: width 3.00 s, lag 2.00 s. Read the estimate only where p is small.")
|
|
85
|
+
# To use the estimate, fit with the responses fixed at it.
|
|
86
|
+
data = simulate(1, coupled=True)
|
|
87
|
+
result = estimate_responses(model, data)
|
|
88
|
+
fitted = model.set_params(responses=result.fixed_responses(responses)).fit(data)
|
|
89
|
+
print("Fit at the estimated responses converged:", bool(fitted.converged_))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
if __name__ == "__main__":
|
|
93
|
+
main()
|