def readAUC(source): predictions = [] correct = [] for line in source: line = line.strip().split() predictions.append(float(line[2])) correct.append(float(line[1])) auc = computeAUC(predictions, correct) return auc