maxfuse.utils.cdist_correlation
- maxfuse.utils.cdist_correlation(arr1, arr2)[source]
Calculate pair-wise 1 - Pearson correlation between X and Y.
- Parameters:
arr1 (np.array of shape (n_samples1, n_features)) – First dataset.
arr2 (np.array of shape (n_samples2, n_features)) – Second dataset.
- Returns:
array-like of shape (n_samples1, n_samples2) – The (i, j)-th entry is 1 - Pearson correlation between i-th row of arr1 and j-th row of arr2.