nidl.metrics: Available metrics¶
Introduction¶
A metric is an object (most likely a function) that allows you to compute
standard scores, usually not natively present in sklearn.metrics
or in torchmetrics. Most metrics in nidl handle both numpy.ndarray
and torch.Tensor and returns an output consistent with the input.
Regression metrics¶
Functions for all regression metrics.
|
Pearson correlation coefficient between 2 arrays y_true, y_pred. |
Self-supervised metrics¶
Functions for all self-supervised metrics.
|
Compute the alignment score between two embeddings [Ref037bd6195a-1]. |
|
Compute the uniformity score of an embedding [R4616aa471b76-1] |
|
Compute the top-k contrastive accuracy between two embeddings. |
|
Procrustes similarity between two point clouds / embeddings in the Euclidean case, with global scale invariance. |
|
Procrustes similarity between two point clouds / embeddings in the Euclidean case, when scale matters. |
|
Kruskal similarity between two point clouds / embeddings. |