Skip to content

API Reference

The public import surface is stable:

from pyAMICA import AMICA, AMICA_NumPy, AMICATorchNG
  • AMICA — the main scikit-learn-style interface. Wraps the PyTorch natural-gradient EM backend. Start here.
  • AMICATorchNG — the PyTorch natural-gradient EM backend (Fortran parity). The AMICA interface delegates to this class.
  • AMICA_NumPy — the legacy NumPy reference implementation, retained as an oracle and for its command-line interface.

The optional Apple-Silicon GPU backend is imported separately and is not part of the default import surface:

from pyAMICA.mlx_impl import AMICAMLXNG  # requires the `mlx` extra
  • AMICAMLXNG — the optional Apple-GPU (MLX) backend; the fastest option on Apple Silicon (float32).