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
dcc31112
Commit
dcc31112
authored
Aug 15, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify aucCaulate.py
parent
a2224a62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
aucCaculate.py
aucCaculate.py
+2
-4
No files found.
aucCaculate.py
View file @
dcc31112
...
...
@@ -2,9 +2,7 @@ from utils import *
from
config
import
*
if
__name__
==
"__main__"
:
test
=
pd
.
read_csv
(
DIRECTORY_PATH
+
"test
{0}.csv"
.
format
(
TEST_DATE
)
,
header
=
None
)
test
=
pd
.
read_csv
(
DIRECTORY_PATH
+
"test
_ffm_data.csv"
,
header
=
None
)
test_label
=
test
[
0
]
.
apply
(
lambda
x
:
x
[
0
])
.
values
predict
=
pd
.
read_csv
(
DIRECTORY_PATH
+
"testset{0}_output_model_{1}-{2}_lr{3}_lambda{4}.txt"
.
format
(
TEST_DATE
,
DATA_START_DATE
,
DATA_END_DATE
,
"0.03"
,
"0.002"
),
header
=
None
)[
0
]
.
values
predict
=
pd
.
read_csv
(
DIRECTORY_PATH
+
"test_set_predict_output.txt"
,
header
=
None
)[
0
]
.
values
get_roc_curve
(
test_label
,
predict
,
"1"
)
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