def calc_auc(predictions):
	y_true =[]
	y_score=[]
	for line in predictions:
		values= line.split(" ")
		y_true.append(float(values[1]))
		y_score.append(float(values[0]))
	auc = sklearn.metrics.roc_auc_score(y_true,y_score)
	return auc