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
c1985e9d
Commit
c1985e9d
authored
Sep 03, 2019
by
舒皓月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2019-09-03
parent
b4fb47f1
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
633 additions
and
2 deletions
+633
-2
PSI_time_filed_channel.py
PSI_time_filed_channel.py
+2
-2
VLM_time.py
VLM_time.py
+631
-0
model_score.xlsx
model_score.xlsx
+0
-0
No files found.
PSI.py
→
PSI
_time_filed_channel
.py
View file @
c1985e9d
...
@@ -28,6 +28,7 @@ class PSIMonitor:
...
@@ -28,6 +28,7 @@ class PSIMonitor:
min_user_group
=
500
,
max_psi
=
0.1
,
min_user_group
=
500
,
max_psi
=
0.1
,
if_save
=
True
,
if_read
=
True
,
if_save
=
True
,
if_read
=
True
,
date_list
=
(
'2019-03-01'
,
'2019-03-15'
,
'2019-03-31'
,
'2019-04-15'
),
date_list
=
(
'2019-03-01'
,
'2019-03-15'
,
'2019-03-31'
,
'2019-04-15'
),
interval_days
=
15
,
field_query
=
'model_exec_data_source#fst_v6_xy_br_dhb_raw'
,
field_query
=
'model_exec_data_source#fst_v6_xy_br_dhb_raw'
,
channel
=
'融360'
):
channel
=
'融360'
):
...
@@ -60,7 +61,7 @@ class PSIMonitor:
...
@@ -60,7 +61,7 @@ class PSIMonitor:
self
.
na_app_chan
=
self
.
field_info_df
.
na_app_chan
.
tolist
()
# 空跑渠道
self
.
na_app_chan
=
self
.
field_info_df
.
na_app_chan
.
tolist
()
# 空跑渠道
# 一些定义的常量
# 一些定义的常量
self
.
min_user_group
=
min_user_group
# 最小客群数量.
self
.
min_user_group
=
min_user_group
*
interval_days
/
30
# 最小客群数量.
self
.
max_psi
=
max_psi
# 最大PSI, 超过视为异常.
self
.
max_psi
=
max_psi
# 最大PSI, 超过视为异常.
# 数据规格
# 数据规格
...
@@ -260,7 +261,6 @@ class PSIMonitor:
...
@@ -260,7 +261,6 @@ class PSIMonitor:
print
(
'处理完成.'
)
print
(
'处理完成.'
)
print
(
'='
*
40
)
print
(
'='
*
40
)
def
plot_psi
(
self
,
field
):
def
plot_psi
(
self
,
field
):
# 分离数据.
# 分离数据.
...
...
VLM_time.py
0 → 100644
View file @
c1985e9d
This diff is collapsed.
Click to expand it.
model_score.xlsx
View file @
c1985e9d
No preview for this file type
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