Skip to content

Add probabilistic model examples and tests for GemPy #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 12, 2025
Merged

Conversation

Leguark
Copy link
Member

@Leguark Leguark commented May 3, 2025

[DOC] Adding development roadmap and probabilistic modeling enhancements

This PR introduces a comprehensive development roadmap and implements probabilistic modeling capabilities with Pyro integration.

Key Changes:

  • Added development log for May 2025 with prioritized tasks and ongoing work
  • Created a modular probabilistic model definition structure in gempy_probability/modules/model_definition/
  • Implemented a reusable Pyro model for geological layer thickness estimation
  • Added test infrastructure for probabilistic modeling with MCMC sampling
  • Implemented visualization of prior and posterior distributions using ArviZ
  • Added robust validation with convergence diagnostics and posterior checks

The probabilistic workflow now supports sampling from priors, MCMC inference with NUTS, and comprehensive posterior analysis. The implementation includes proper separation of model definition, likelihood computation, and inference procedures.

Copy link
Member Author

Leguark commented Jun 12, 2025

Merge activity

  • Jun 12, 8:22 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 12, 8:26 AM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 12, 8:28 AM UTC: @Leguark merged this pull request with Graphite.

@Leguark Leguark changed the base branch from clean_repo to graphite-base/5 June 12, 2025 08:23
@Leguark Leguark changed the base branch from graphite-base/5 to main June 12, 2025 08:25
Leguark added 10 commits June 12, 2025 08:26
Introduce a test script for probabilistic geomodeling using Pyro, incorporating prior sampling, posterior inference, and visualization. This enhances testing coverage with a probabilistic approach while demonstrating Pyro integration with GemPy.
Updated the development log to include a task for investigating the segmentation function, ensuring comprehensive tracking of future tasks.
Refactored probabilistic model setup by modularizing `_prob_run` for clarity and reusability. Added posterior mean value checks, MCMC convergence diagnostics, and cleaned redundant comments to enhance readability and test robustness.
Streamlined probability testing by refining grid logic and posterior checks, added print diagnostics for clarity, and adjusted posterior value assertions. Moved geological layer thickness computation to a separate `_likelihood` function for better modularity and maintainability.
Added "Doing" section highlighting ongoing tasks like code compression and GemPy posterior visualization. This improves clarity on current development efforts.
@Leguark Leguark merged commit 4dacef7 into main Jun 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant