CelLink
  • Installation
  • Tutorials
  • API documentation
CelLink
  • API documentation
  • CelLink.metrics
  • CelLink.metrics.feature_imputation_accuracy_corr
  • View page source

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).

Previous Next

© Copyright Xin Luo.

Built with Sphinx using a theme provided by Read the Docs.