Example #1
0
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
Example #2
0
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