Skip to content

Backend selection in the AMICA and AMICAICA wrappers #313

Closed

Description

@neuromechanist

From the epic #278 integration-parity audit. Both convenience wrappers construct AMICATorchNG unconditionally: AMICA (pamica/amica.py) and, through it, AMICAICA (pamica/mne_compat/core.py:348-354). With the MLX backend now at full fitting + non-fitting parity (epic #278), every MLX user is by construction a raw-AMICAMLXNG user, losing the wrappers' conveniences (from_params_file, the #50 degenerate-fit usability contract, is_fitted_/converged_ surface), and — the sharpest case — an Apple-Silicon MNE user cannot get MLX-backed fits through AMICAICA at all without hand-reimplementing the to_mne_ica() export (mean/sphere/unmixing -> pca_mean_/pca_components_/unmixing_matrix_, including the rank-reduced SVD branch).

The torch-only nature of both wrappers is currently stated nowhere (checked docs/api/mne-compat.md, backends.md, changelog). Two separable decisions:

  • Whether AMICA (and thereby AMICAICA) grows a backend/engine selection parameter, or the raw-backend route stays the documented MLX path.
  • Either way, document the current torch-only wrapper reality explicitly (docs/api/mne-compat.md and the differences page), since the audit found it easy to over-read "no remaining MLX gaps" as covering the wrappers.

Relevant to the MLX audience specifically: individual experimenters on Apple hardware whose downstream is EEGLAB/MNE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions