Skip to content

GaussianMixtureICA.fit_em log-likelihood decreases across iterations #31

Closed

Description

@neuromechanist

GaussianMixtureICA.fit_em (torch_impl/mixture_models.py, used by the basic backend="torch"
path) has an M-step bug: the log-likelihood decreases across EM iterations instead of ascending.

Surfaced by the xfail pyAMICA/tests/torch_tests/test_torch_components.py::test_em_fitting (strict
xfail). Previously mis-attributed to "epic #9"; the epic delivered the natural-gradient backend
(AMICATorchNG), which does not touch this legacy mixture module. Fix the M-step update (or retire
this module if backend="torch" is removed in favor of backend="ng"), then un-xfail the test.

Activity

  1. added
    bug
    on Jul 3, 2026
  2. neuromechanist commented on Jul 4, 2026

    @neuromechanist
    MemberAuthor

    Resolved by #32 (PR #35): the buggy GaussianMixtureICA.fit_em M-step lived in torch_impl/mixture_models.py, which was deleted when the basic AMICATorch backend was removed. AMICATorchNG (now the sole backend) uses the Fortran-parity exact-EM mixture updates and does not have this bug. The strict-xfail test that surfaced it was removed with the backend.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions