hyperspy.misc.machine_learning.tools module

hyperspy.misc.machine_learning.tools.amari(W, A)

Calculate the Amari distance between two non-singular matrices.

Convenient for checking convergence in ICA algorithms (See [Moreau1998] and [Bach2002]).

  • W (array-like) – The two matrices to measure.

  • A (array-like) – The two matrices to measure.


Amari distance between W and A.

Return type:




E. Moreau and O. Macchi, “Self-adaptive source separation. ii. comparison of the direct, feedback, and mixed linear network”, IEEE Trans. on Signal Processing, vol. 46(1), pp. 39-50, 1998.


F. Bach and M. Jordan, “Kernel independent component analysis”, Journal of Machine Learning Research, vol. 3, pp. 1-48, 2002.