Metrics

metrics.compute_metrics(x, y)

Compute a set of metrics between two distributions x and y.

metrics.compute_mean_metrics(metrics[, prefix])

Compute the mean value of different metrics.

metrics.compute_scalar_mmd(x, y[, gammas])

Compute the Mean Maximum Discrepancy (MMD) across different length scales

metrics.compute_r_squared(x, y)

Compute the R squared score between means of the true (x) and predicted (y) distributions.

metrics.compute_sinkhorn_div(x, y[, epsilon])

Compute the Sinkhorn divergence between x and y as in [Feydy et al., 2019].

metrics.compute_e_distance(x, y)

Compute the energy distance between x and y as in [Peidli et al., 2024].

metrics.maximum_mean_discrepancy(x, y[, ...])

Compute the Maximum Mean Discrepancy (MMD) between two distributions x and y.