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

Draft
wants to merge 10 commits into
base: clean_repo
Choose a base branch
from

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.

Leguark added 10 commits May 3, 2025 10:23
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.
Copy link
Member Author

Leguark commented May 3, 2025

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