otica.utils.amari_index

amari_index(mixing_true, unmixing_pred)[source]

Computes the Amari index between true mixing and estimated unmixing matrices.

The index is zero when the estimated unmixing matrix recovers the sources up to the permutation, scaling, and sign indeterminacies of independent component analysis.

Parameters:
  • mixing_true (np.typing.ArrayLike) – True square mixing matrix.

  • unmixing_pred (np.typing.ArrayLike) – Estimated square unmixing matrix.

Returns:

Amari index.

Return type:

float

Raises:

ValueError – If either matrix is not square, their shapes differ, or the unmixing-mixing product has a zero row or column.