API Reference¶
The public import surface is stable:
AMICA: the main scikit-learn-style interface. Wraps a natural-gradient EM backend: PyTorch by default, or MLX withbackend="mlx". Start here.AMICATorchNG: the PyTorch natural-gradient EM backend (Fortran parity). TheAMICAinterface delegates to this class by default.pamica.metrics: separation-quality metrics (mir,pairwise_mi,block_diagonal_order) as free functions over plain arrays. Also reachable asAMICA.mir/AMICA.pmion a fitted model.pamica.viz: backend-agnostic plots over a writtenamicaoutdirectory.AMICA_NumPy: the legacy NumPy reference implementation, retained as an oracle and for its command-line interface.AMICANative: the Fortran reference binary itself, run on your data as a fourth backend.
The optional Apple-Silicon GPU backend is imported separately and is not part of the default import surface:
AMICAMLXNG: the optional Apple-GPU (MLX) backend; the fastest option on Apple Silicon (float32).AMICA(backend="mlx")builds it without this import.
The optional MNE-Python wrapper is likewise imported explicitly:
AMICAICA: fit AMICA from an MNERaw/Epochsand interoperate withmne.preprocessing.ICA(get_sources,apply,plot_components,to_mne_ica), on either backend (backend="mlx").