Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
model_monitoring_monthly
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
decision-science
model_monitoring_monthly
Commits
339f205f
Commit
339f205f
authored
May 18, 2020
by
舒皓月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20200518_0
parent
f5ab0268
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
AUC_time.py
AUC_time.py
+3
-0
PSI_time.py
PSI_time.py
+2
-0
VLM_time.py
VLM_time.py
+3
-0
No files found.
AUC_time.py
View file @
339f205f
...
...
@@ -321,6 +321,9 @@ class AUCMonitor:
else
:
self
.
mongo_df
=
pd
.
read_csv
(
self
.
save_path
+
'data/mongo_data.csv'
)
self
.
mongo_df
=
self
.
mongo_df
.
loc
[
self
.
mongo_df
[
'applied_type'
]
.
notna
()]
# 去除巧盼渠道.
self
.
mongo_df
=
self
.
mongo_df
.
loc
[
self
.
mongo_df
[
'applied_channel'
]
!=
'巧盼API'
]
last_day
=
datetime
.
datetime
.
today
()
self
.
mongo_df
[
'deadline'
]
=
self
.
mongo_df
[
'deadline'
]
.
apply
(
...
...
PSI_time.py
View file @
339f205f
...
...
@@ -344,6 +344,8 @@ class PSIMonitor:
self
.
mongo_df
[
'applied_at'
]
=
self
.
mongo_df
[
'applied_at'
]
.
apply
(
lambda
x
:
x
[:
10
])
else
:
self
.
mongo_df
[
'applied_at'
]
=
self
.
mongo_df
[
'applied_at'
]
.
apply
(
lambda
x
:
x
.
strftime
(
'
%
Y-
%
m-
%
d'
))
# 去除巧盼渠道.
self
.
mongo_df
=
self
.
mongo_df
.
loc
[
self
.
mongo_df
[
'applied_channel'
]
!=
'巧盼API'
]
# 清洗数据.
def
clean_data
(
data
):
...
...
VLM_time.py
View file @
339f205f
...
...
@@ -435,6 +435,9 @@ class VLMMonitor:
self
.
mongo_df
=
pd
.
read_csv
(
self
.
data_save_path
+
'mongo_data.csv'
)
self
.
mongo_df
=
self
.
mongo_df
.
loc
[
self
.
mongo_df
[
'applied_type'
]
.
notna
()]
# 去除巧盼渠道.
self
.
mongo_df
=
self
.
mongo_df
.
loc
[
self
.
mongo_df
[
'applied_channel'
]
!=
'巧盼API'
]
def
func_1
(
data
):
try
:
int
(
data
)
...
...
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