frites.core.mi_mixture_1d_gd#

frites.core.mi_mixture_1d_gd(x, y)[source]#

Mutual information between a Gaussian and a discrete variable in bits.

This method evaluate MI from a Gaussian mixture. I = mi_mixture_gd(x,y) returns the MI between the (possibly multidimensional)

Parameters
x, ynumpy:array_like

Gaussian arrays of shape (n_epochs,) or (n_dimensions, n_epochs). y must be an array of integers

Returns
ipython:float

Information shared by x and y (in bits)