Skip to content

Address PR #28 review: NG backend polish + doc coherence #29

Closed

Description

@neuromechanist

Follow-ups from the PR #28 (epic close-out) holistic review. No blockers to the epic, but the "no technical debt carried forward" policy wants these cleaned up before/with the epic merge.

Important

  • AMICA(backend="ng") crashes on default config on Apple Silicon: fit() auto-selects MPS, but AMICATorchNG defaults to float64 (Fortran parity), which MPS rejects. Fall back to CPU when MPS is auto-selected for a float64 NG run; document.
  • No test for the amica.py backend="ng" wrapper (constructor guards, debug/output_dir guards, save/load NotImplementedError, real-data fit). Add wrapper test.

Docs coherence

  • AGENTS.md env-setup stale re: UV migration; Architecture Map / Key Files omit amica_torch_ng.py / AMICATorchNG.
  • ADR .context/decisions/0001-torch-backend-natural-gradient-em.md still "Status: proposed" (+ README index); should be Accepted.
  • Two xfail tests reference "epic Epic: PyTorch backend parity with Fortran AMICA (natural-gradient EM rewrite) #9" as the blocker; repoint to concrete follow-up issues.
  • PROGRESS_SUMMARY.md / FEATURE_PARITY.md carry stale pre-epic numbers.

Suggestions

  • amica.py class docstring model_ : AMICATorch should note AMICATorchNG for backend="ng".
  • pyAMICA/__init__.py does not re-export AMICATorchNG.

Related

  • Removing the parked AMICATorchV2 once NG is the de-facto main backend (separate scope).

Activity

  1. added
    documentation
    on Jul 3, 2026
  2. neuromechanist commented on Jul 3, 2026

    @neuromechanist
    MemberAuthor

    Done and on main: fixes landed via PR #33 (into the epic) and reached main with the epic close-out PR #28. Follow-ups split out as #30, #31, #32, and epic #34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions