tfp.substrates.numpy.stats.kendalls_tau
Stay organized with collections
Save and categorize content based on your preferences.
Computes Kendall's Tau for two ordered lists.
tfp.substrates.numpy.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.
Args |
y_true
|
a Tensor of shape [n] containing the true ordinal ranking.
|
y_pred
|
a Tensor of shape [n] containing the predicted ordering of the
same N items.
|
name
|
Optional Python str name for ops created by this method.
Default value: None (i.e., 'kendalls_tau').
|
Returns |
kendalls_tau
|
Kendall's Tau, the 1945 tau-b formulation that ignores
ordering of ties, as a float32 scalar Tensor.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-21 UTC."],[],[]]