Skip to content

test: fix the mini-sbibm true-parameter loader and mixed-data simulator - #2167

Draft
manuelgloeckler wants to merge 1 commit into
mainfrom
fix/mini-sbibm-task-loaders
Draft

manuelgloeckler wants to merge 1 commit into
mainfrom
fix/mini-sbibm-task-loaders

Conversation

@manuelgloeckler

Copy link
Copy Markdown
Contributor

Split out of the Simformer PR (#1621). These are two small bugs in the mini-sbibm tasks. The MixedData fix is by @nMaax, who is credited as co-author on the commit.

Changes

  • Task.get_true_parameters loaded theta_{idx}.pt, but the stored files are named theta_o_{idx}.pt, so it raised FileNotFoundError. It never showed up because the tasks that use the base loader (slcp, two_moons) never call it. It also gets weights_only=False, like the other loaders.
  • MixedData.get_simulator returned mixed_simulator with its default stimulus_condition=2.0, while the observations and the reference posterior use self.stimulus_condition. Changing the condition therefore trained on data from a different simulator than the reference. The simulator now uses the task's condition.

Testing

test_stored_true_parameters_load (new) and test_simulator_uses_task_stimulus_condition fail on main and pass with the fix. tests/mini_sbibm/ passes.

🤖 Generated with Claude Code

Task.get_true_parameters loaded theta_{idx}.pt, but the stored files are
theta_o_{idx}.pt. MixedData.get_simulator ignored stimulus_condition, which
the observations and the reference posterior use.

Co-authored-by: nMaax <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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