Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
0b3210d9
Commit
0b3210d9
authored
Aug 07, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
80252730
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
rocCurve.py
eda/ml_tools/rocCurve.py
+9
-9
No files found.
eda/ml_tools/rocCurve.py
View file @
0b3210d9
...
...
@@ -2,14 +2,14 @@ import pandas as pd
from
sklearn
import
metrics
# import matplotlib.pyplot as plt
from
sklearn.metrics
import
auc
import
argparse
#
import argparse
parser
=
argparse
.
ArgumentParser
()
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('output_photo',help='The filename of the output_photo')
args
=
parser
.
parse_args
()
#
parser = argparse.ArgumentParser()
#
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('output_photo',help='The filename of the output_photo')
#
args = parser.parse_args()
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_pred must be at [0,1]"
)
if
__name__
==
"__main__"
:
get_roc_curve
(
args
.
test_label
,
args
.
test_pred
)
#
#
if __name__ == "__main__":
#
get_roc_curve(args.test_label,args.test_pred)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment