def compute_performance(Xu_true, Xu_pred): NDCG = ranking.compute_ndcg(Xu_pred, Xu_true) MAP = ranking.compute_map(Xu_pred, Xu_true) ME = ranking.compute_me(Xu_pred, Xu_true) AUC = ranking.compute_auc(Xu_pred, Xu_true) print "NDCG: ", NDCG, "MAP: ", MAP, "MISCLASSIFICATION ERROR: ", ME, "AUC: ", AUC
def compute_performance(Xu_true, Xu_pred): NDCG = ranking.compute_ndcg(Xu_pred, Xu_true) MAP = ranking.compute_map(Xu_pred, Xu_true) print "NDCG: ", NDCG, "MAP: ", MAP