ratingslib.ratings.metrics module
This module implements evaluation metrics.
- kendall_tau_table(ratings_dict: Dict[str, DataFrame], print_out: bool = True) List[List[float]]
Kendall Tau comparison of ranking lists.
- Parameters
ratings_dict (Dict[str, pd.DataFrame]) – Dictionary that maps names to ratings. Note that ratings are stored in a pandas.DataFrame.
print_out (bool) – If
True
then print results table.
- Returns
kendall_results – Table of Kendall tau results. The lower diagonal elements represent Kendall’s tau values of each pair, while the upper diagonal elements the p-values of each pair from the two-sided hypothesis test, whose null hypothesis is an absence of association
- Return type
List[List[float]]