Commit 0b3210d9 authored by 张彦钊's avatar 张彦钊

fix bug

parent 80252730
...@@ -2,14 +2,14 @@ import pandas as pd ...@@ -2,14 +2,14 @@ import pandas as pd
from sklearn import metrics from sklearn import metrics
# import matplotlib.pyplot as plt # import matplotlib.pyplot as plt
from sklearn.metrics import auc from sklearn.metrics import auc
import argparse # import argparse
parser = argparse.ArgumentParser() # parser = argparse.ArgumentParser()
parser.add_argument('test_label',help='The filename of the test_label') # parser.add_argument('test_label',help='The filename of the test_label')
parser.add_argument('test_pred',help='The filename of the test_pred') # parser.add_argument('test_pred',help='The filename of the test_pred')
# parser.add_argument('output_photo',help='The filename of the output_photo') # # parser.add_argument('output_photo',help='The filename of the output_photo')
args = parser.parse_args() # args = parser.parse_args()
def get_roc_curve(label,pred): def get_roc_curve(label,pred):
...@@ -39,6 +39,6 @@ def get_roc_curve(label,pred): ...@@ -39,6 +39,6 @@ def get_roc_curve(label,pred):
print("the test_label must be 0 or 1") print("the test_label must be 0 or 1")
print("the test_pred must be at [0,1]") print("the test_pred must be at [0,1]")
#
if __name__ == "__main__": # if __name__ == "__main__":
get_roc_curve(args.test_label,args.test_pred) # get_roc_curve(args.test_label,args.test_pred)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment