calculate_kendalls_tau#

cinnabar.stats.calculate_kendalls_tau(y_true: ndarray, y_pred: ndarray) float[source]#

Compute Kendall’s tau between true and predicted values.

Parameters:
  • y_true (ndarray with shape (N,)) – True values

  • y_pred (ndarray with shape (N,)) – Predicted values

Returns:

tau – Kendall’s tau between true and predicted values

Return type:

float