torchaudio.functional.frechet_distance
- torchaudio.functional.frechet_distance(mu_x, sigma_x, mu_y, sigma_y)[source]
Computes the Fréchet distance between two multivariate normal distributions [Dowson and Landau, 1982].
Concretely, for multivariate Gaussians and , the function computes and returns as
- Parameters:
mu_x (torch.Tensor) – mean of multivariate Gaussian , with shape (N,).
sigma_x (torch.Tensor) – covariance matrix of , with shape (N, N).
mu_y (torch.Tensor) – mean of multivariate Gaussian , with shape (N,).
sigma_y (torch.Tensor) – covariance matrix of , with shape (N, N).
- Returns:
the Fréchet distance between and .
- Return type: