Closed shantanuo closed 4 years ago
mrr has been implemented as a class in sklearn called "label_ranking_average_precision_score".
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.label_ranking_average_precision_score.html
The code in "Text Classification with Logistic Regression.ipynb" file will be much shorter if it is used.
Here is a simplified version: https://gist.github.com/shantanuo/d2cbbe4f77e0eba880010ef9bbadf82f
mrr has been implemented as a class in sklearn called "label_ranking_average_precision_score".
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.label_ranking_average_precision_score.html
The code in "Text Classification with Logistic Regression.ipynb" file will be much shorter if it is used.