autotest/tools/calculate_AUC.py [35:49]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    return auc

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="AUC")
    parser.add_argument("--input_file", type=str, help="tsv file")
    parser.add_argument("--predict_index", type=str, help="the column index of prediction of model, start from 0")
    parser.add_argument("--label_index", type=str, help="the column index of label, start from 0")
    parser.add_argument("--header", action='store_true', default=False, help="whether contains header row or not, default is False")

    params, _ = parser.parse_known_args()

    assert params.input_file, 'Please specify a input file via --input_file'
    assert params.predict_index, 'Please specify the column index of prediction via --predict_index'
    assert params.label_index, 'Please specify the column index of label via --label_index'
    main(params)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tools/calculate_auc.py [34:48]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    return auc

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="AUC")
    parser.add_argument("--input_file", type=str, help="tsv file")
    parser.add_argument("--predict_index", type=str, help="the column index of prediction of model, start from 0")
    parser.add_argument("--label_index", type=str, help="the column index of label, start from 0")
    parser.add_argument("--header", action='store_true', default=False, help="whether contains header row or not, default is False")

    params, _ = parser.parse_known_args()

    assert params.input_file, 'Please specify a input file via --input_file'
    assert params.predict_index, 'Please specify the column index of prediction via --predict_index'
    assert params.label_index, 'Please specify the column index of label via --label_index'
    main(params)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



