CelLink.metrics.feature_imputation_accuracy_corr
- CelLink.metrics.feature_imputation_accuracy_corr(m1_feature, m2_aligned_feature1)[source]
Calculate the feature imputation accuracy of the aligned feature profile using Pearson correlation.
- Parameters:
m1_feature (np.ndarray of shape (n_samples, n_features)) – The original modality-1 feature matrix.
m2_aligned_feature1 (np.ndarray of shape (n_samples, n_features)) – The imputed (aligned) modality-1 feature matrix obtained for modality 2.
- Returns:
float – The average per-sample Pearson correlation (imputation accuracy).