feat(inference): add synthetic science recipe workflow#220
Merged
TobiBu merged 1 commit intofeat/perf-guardrailsfrom Apr 21, 2026
Merged
feat(inference): add synthetic science recipe workflow#220TobiBu merged 1 commit intofeat/perf-guardrailsfrom
TobiBu merged 1 commit intofeat/perf-guardrailsfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a compact “synthetic science recipe” workflow under rubix.inference that runs an end-to-end pipeline (deterministic optimization → variational inference → posterior predictive sampling → residual/metric summarization), plus helpers to persist outputs and accompanying CLI/docs/tests.
Changes:
- Added
rubix.inference.workflowswithrun_synthetic_science_recipe()andsave_science_recipe_outputs(). - Added a runnable CLI script to execute the workflow and write JSON/NPZ artifacts.
- Added unit tests and documentation updates; exported workflow helpers via
rubix.inference.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
rubix/inference/workflows.py |
Implements the synthetic end-to-end workflow and output persistence (JSON + NPZ). |
scripts/run_synthetic_science_recipe.py |
CLI wrapper for running the workflow and saving outputs to a directory. |
tests/test_inference_workflows.py |
Validates workflow output structure and verifies JSON/NPZ persistence behavior. |
rubix/inference/__init__.py |
Exposes workflow helpers at the package level via imports and __all__. |
docs/rubix.inference.rst |
Adds autodoc entry for the new rubix.inference.workflows module. |
docs/inference_workflows.rst |
Documents how to run the synthetic workflow via the new script. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rubix.inference.workflowswith a compact synthetic end-to-end science recipeValidation
pre-commit run --files rubix/inference/workflows.py tests/test_inference_workflows.py scripts/run_synthetic_science_recipe.py docs/inference_workflows.rst docs/rubix.inference.rst rubix/inference/__init__.pypython -m compileall rubix/inference/workflows.py tests/test_inference_workflows.py scripts/run_synthetic_science_recipe.pyNotes
pytestexecution in this sandbox intermittently hangs due local JAX backend/runtime behavior; test coverage is provided intests/test_inference_workflows.pyand lint hooks pass.