Skip to content

feat(inference): add synthetic science recipe workflow#220

Merged
TobiBu merged 1 commit intofeat/perf-guardrailsfrom
feat/science-recipe-workflow
Apr 21, 2026
Merged

feat(inference): add synthetic science recipe workflow#220
TobiBu merged 1 commit intofeat/perf-guardrailsfrom
feat/science-recipe-workflow

Conversation

@TobiBu
Copy link
Copy Markdown
Collaborator

@TobiBu TobiBu commented Apr 21, 2026

Summary

  • add rubix.inference.workflows with a compact synthetic end-to-end science recipe
  • add output persistence helper for JSON/NPZ science artifacts
  • add CLI entry script and unit tests for workflow/output behavior
  • expose new helpers in inference exports and docs

Validation

  • 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__.py
  • python -m compileall rubix/inference/workflows.py tests/test_inference_workflows.py scripts/run_synthetic_science_recipe.py

Notes

  • pytest execution in this sandbox intermittently hangs due local JAX backend/runtime behavior; test coverage is provided in tests/test_inference_workflows.py and lint hooks pass.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.workflows with run_synthetic_science_recipe() and save_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.

@TobiBu TobiBu merged commit ae8ee4d into feat/perf-guardrails Apr 21, 2026
5 checks 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.

2 participants