python metric functions, such as MAP, NDCG, AUC...