Skip to content

fix: split grid search factor results with the fitted priors - #1791

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/grid-factor-results
Nov 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/grid-factor-results

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

A grid cell replaces the shared priors with narrower priors. Splitting by each factor's original model then failed on the first cell with KeyError: No path from () in sample. FactorGraphModel.make_result now splits both the summary and available full samples by the factor submodel of the model actually fitted. This addresses the library blocker reported on the SLaM workspace task.

API Changes

FactorGraphModel.make_result now returns child results for the fitted grid cell. Existing method signatures and the CombinedResult interface are preserved.

Test Plan

  • Two Gaussian factors sharing centre and sigma reproduced the original failure. The four-cell regression now passes in test mode, retaining the tied priors and per-factor access.
  • Grid and graph tests: 96 passed. Full Python 3.13 library suite: 4,311 passed, 2 skipped, 1 expected failure. Witness also passed on Python 3.12.

Heart dev-ship gate: GREEN. manifest drift: end-at-deliverable blocks (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml. test run status unknown (no report.json). required workflows unverified (workflow list unreadable): PyAutoFit. release validation incomplete: no rehearsal for current source.

Full API Changes

FactorGraphModel.make_result now returns child results for the fitted grid cell. Existing method signatures and the CombinedResult interface are preserved.

Tracks #1789.

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Nov 22, 2026
@Jammy2211
Jammy2211 merged commit 9109e67 into main Nov 22, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/grid-factor-results branch November 22, 2026 18:08
@Jammy2211

Copy link
Copy Markdown
Collaborator Author

Downstream verification for autolens_workspace #683 passed using merged PyAutoFit commit d37ada832. The simultaneous SLaM script and its notebook both finished all four joint grid cells and final refinement. The workspace fix and test details are in autolens_workspace #684.

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