Skip to content

compute_correlations

compute_correlations(x, y)

Compute paired summary metrics between two arrays.

Parameters:

  • x (array - like) –

    First paired array.

  • y (array - like) –

    Second paired array.

Returns:

  • metrics ( dict ) –

    Dictionary with pearson, spearman, energy_distance and rmse_l2 entries. The energy distance is computed with geomloss.SamplesLoss('energy') on the full sample arrays. For rmse_l2, the reference profile is y.