Skip to content

refactor(ep): remove ParallelEPOptimiser and its tests (#1611) - #1612

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/remove-parallel-ep-optimiser
Sep 12, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/remove-parallel-ep-optimiser

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Deletes ParallelEPOptimiser (human decision 2026-09-11, after #1608 / #1610). It was never used and never exported from autofit, autofit.graphical or the EP package (deep import only); its one test helper _test_parallel_laplace was underscore-prefixed and never collected; and it was EP's own process pool across factors, subject to the same dead-worker hang #1610 fixed for Nautilus and the JAX-in-a-forked-child deadlock of #1442. The ruling of 2026-09-09 is that EP never combines with Python multiprocessing, so the class contradicted the ruling by existing. It is restorable from git history if ever wanted.

Also: README §7 (Parallel EP) removed, the lowering contract renumbered §8 → §7 with every cross-reference updated (README, AGENTS.md seam rule, test_declarative_deterministic.py), the diagnostics end-of-run-guards test loses its "parallel" name and its F3 wording, and an unused multiprocessing import goes from the optimiser module. Net −211 lines.

API Changes

None public — the class was reachable only by deep import. Recorded as Removed below for release notes.
See full details below.

Test Plan

Full API Changes (for automation & release notes)

Removed

  • autofit.graphical.expectation_propagation.optimiser.ParallelEPOptimiser — internal, never exported; EP factor optimisation is EPOptimiser only. Parallelism for EP comes from a JAX-vectorised likelihood (Analysis(use_jax=True)).

Generated by the PyAutoLabs agent workflow.

Closes #1611

🤖 Generated with Claude Code

https://claude.ai/code/session_01FU8EkdahFWmrL6pewkHZR3


Generated by Claude Code

Never used, never exported (deep import only), its one test helper never
collected, and it is EP's own fork pool across factors — subject to the
same dead-worker hang fixed for Nautilus in #1610 and contradicting the
2026-09-09 ruling that EP never combines with Python multiprocessing.
Restorable from git history if ever wanted.

README §7 (Parallel EP) removed; the lowering contract is now §7 and its
cross-references follow. The end-of-run-guards test loses its "parallel"
name, and the optimiser module drops an unused multiprocessing import.

Closes #1611

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FU8EkdahFWmrL6pewkHZR3
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 11, 2026 — with Claude
@Jammy2211
Jammy2211 merged commit 54f464d into main Sep 12, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/remove-parallel-ep-optimiser branch September 12, 2026 19:29
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 26, 2026
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.

refactor(ep): remove ParallelEPOptimiser and its tests

2 participants