autotest/tools/calculate_AUC.py [15:33]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                continue
            line = line.rstrip()
            # skip empty line
            if not line:
                continue
            line = line.split('\t')
            if len(line) < min_column_num:
                print("at line:%s, %s"%(predict_index, line))
                raise Exception("the given index of predict or label is exceed the index of the column")
            prediction.append(float(line[predict_index]))
            label.append(int(line[label_index]))
    return prediction, label
            
def calculate_AUC(prediction, label):
    return roc_auc_score(label, prediction)

def main(params):
    prediction, label = read_tsv(params)
    auc = calculate_AUC(prediction, label)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tools/calculate_auc.py [14:32]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                continue
            line = line.rstrip()
            # skip empty line
            if not line:
                continue
            line = line.split('\t')
            if len(line) < min_column_num:
                print("at line:%s, %s"%(predict_index, line))
                raise Exception("the given index of predict or label is exceed the index of the column")
            prediction.append(float(line[predict_index]))
            label.append(int(line[label_index]))
    return prediction, label
            
def calculate_AUC(prediction, label):
    return roc_auc_score(label, prediction)

def main(params):
    prediction, label = read_tsv(params)
    auc = calculate_AUC(prediction, label)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



