Skip to content

Bayesian post-analysis using BUMPS DREAM#244

Draft
rozyczko wants to merge 8 commits into
developfrom
bayesian
Draft

Bayesian post-analysis using BUMPS DREAM#244
rozyczko wants to merge 8 commits into
developfrom
bayesian

Conversation

@rozyczko
Copy link
Copy Markdown
Member

@rozyczko rozyczko commented May 6, 2026

A new Bayesian MCMC sampling interface. This enables users to perform posterior sampling using the BUMPS DREAM sampler directly from both the MultiFitter and BUMPS minimizer classes.

  • Added a sample method to MultiFitter that flattens multi-dataset arrays, resolves parameter aliases, and delegates to the minimizer’s sampling method, supporting both 1D and vectorized multi-dimensional fits.
  • Implemented a sample method in the BUMPS minimizer (minimizer_bumps.py) that builds a BUMPS FitProblem and runs the DREAM sampler, returning posterior draws, parameter names, sampler state, and log-probabilities.

@rozyczko rozyczko added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] medium Normal/default priority labels May 6, 2026
@rozyczko rozyczko changed the title initial implementation Bayesian post-analysis using BUMPS DREAM May 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

❌ Patch coverage is 92.68293% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.78%. Comparing base (0216322) to head (8aa06c1).

Files with missing lines Patch % Lines
.../easyscience/fitting/minimizers/minimizer_bumps.py 89.83% 6 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #244      +/-   ##
===========================================
+ Coverage    82.59%   82.78%   +0.18%     
===========================================
  Files           62       62              
  Lines         4959     5041      +82     
===========================================
+ Hits          4096     4173      +77     
- Misses         863      868       +5     
Flag Coverage Δ
integration 44.13% <74.39%> (+0.52%) ⬆️
unittests 82.22% <89.02%> (+0.89%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/easyscience/fitting/multi_fitter.py 98.92% <100.00%> (+1.78%) ⬆️
.../easyscience/fitting/minimizers/minimizer_bumps.py 97.15% <89.83%> (-2.32%) ⬇️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] medium Normal/default priority [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant