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 Tensorof shape[n]containing the true ordinal ranking. | 
| y_pred | a Tensorof shape[n]containing the predicted ordering of the
same N items. | 
| name | Optional Python strname 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 float32scalar 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.
  
  
  
    
      [null,null,["Last updated 2023-11-21 UTC."],[],[]]