[ allennlp.training.metrics.spearman_correlation ]
class SpearmanCorrelation(Metric): | def __init__(self) -> None
Metric calculates the sample Spearman correlation coefficient (r)
between two tensors. Each element in the two tensors is assumed to be
a different observation of the variable (i.e., the input tensors are
implicitly flattened into vectors and the correlation is calculated
between the vectors).
| @overrides | def get_metric(self, reset: bool = False)
- The accumulated sample Spearman correlation.
| @overrides | def reset(self)