kendall_tau_set(predicted_rank_vectors,
original_rank_vectors,
**kwargs)
| source code
|
This is the refined calculation of set-level Kendall tau of predicted
vs human ranking according to WMT12 (Birch et. al 2012) It returns both
set-level Kendall tau and average segment-level Kendall tau
- Parameters:
predicted_rank_vectors ([Ranking, ..]) - a list of lists containing integers representing the predicted
ranks, one ranking for each segment
original_rank_vectors ([Ranking, ..]) - a list of the names of the attribute containing the human rank,
one ranking for each segment
- Returns: {string:float, string:float, string:int, string:int, string:int,
string:int, string:int, string:int}
- overall Kendall tau score,
-
average segment Kendall tau score,
-
the probability for the null hypothesis of X and Y being
independent
-
the count of concordant pairs,
-
the count of discordant pairs,
-
the count of pairs used for calculating tau (excluding
"invalid" pairs)
-
the count of original ties,
-
the count of predicted ties,
-
the count of all pairs
|