mvpy.math#

accuracy

Compute accuracy between x and y.

cosine

Compute cosine similarities between x and y.

cosine_d

Compute cosine distances between x and y.

cv_euclidean

Computes cross-validated euclidean distances between vectors in x and y.

cv_mahalanobis

Computes cross-validated mahalanobis distances between x and y.

euclidean

Computes euclidean distances between x and y.

kernel_linear

Compute the linear kernel function.

kernel_poly

Compute the polynomial kernel function.

kernel_rbf

Compute the radial basis kernel function.

kernel_sigmoid

Compute the sigmoid kernel function.

mahalanobis

Computes mahalanobis distance between x and y using inverse covariance matrix Σ.

pearsonr

Computes pearson correlations between x and y.

pearsonr_d

Computes Pearson distance between x and y.

r2

Rank data in x along its final feature dimension.

rank

Rank data in x along its final feature dimension.

roc_auc

Compute ROC AUC score between y_true and y_score.

spearmanr

Compute Spearman correlation between x and y.

spearmanr_d

Compute Spearman distance between x and y.