예제 #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
예제 #2
0
파일: test.py 프로젝트: gauravsc/ecir2018
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