View source on GitHub |
Computes Kendall's Tau for two ordered lists.
tfp.stats.kendalls_tau(
y_true, y_pred, name=None
)
Kendall's Tau measures the correlation between ordinal rankings. The provided values may be of any type that is sortable, with the argsort indices indicating the true or proposed ordinal sequence.
Returns | |
---|---|
kendalls_tau
|
Kendall's Tau, the 1945 tau-b formulation that ignores
ordering of ties, as a float32 scalar Tensor.
|