adapt.metrics.normalized_frechet_distance

adapt.metrics.normalized_frechet_distance(Xs, Xt)[source]

Compute the normalized frechet distance between Xs and Xt.

Xs and Xt are first scaled by a factor (std(Xs) + std(Xt)) / 2 and centered around (mean(Xs) + mean(Xt)) / 2

Then, the frechet distance is computed and divided by the number of features.

Parameters
Xsarray

Source array

Xtarray

Target array

Returns
scorefloat

References

1

[1] Dowson, D. C; Landau, B. V. “The Fréchet distance between multivariate normal distributions”. JMVA. 1982