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
52b89d68
Commit
52b89d68
authored
Jul 10, 2019
by
舒皓月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加一个项目介绍 v0.0.1
parent
9a3d42b6
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
119 additions
and
79 deletions
+119
-79
misc.xml
.idea/misc.xml
+1
-1
model_monitor.iml
.idea/model_monitor.iml
+1
-1
workspace.xml
.idea/workspace.xml
+65
-54
Monitor_VLM_riskanalysi.py
Monitor_risk_analysis/Monitor_VLM_riskanalysi.py
+7
-23
README.md
README.md
+45
-0
No files found.
.idea/misc.xml
View file @
52b89d68
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
6 (model_mvp
)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.
7 (model_monitor
)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"PyCharmProfessionalAdvertiser"
>
<option
name=
"shown"
value=
"true"
/>
</component>
...
...
.idea/model_monitor.iml
View file @
52b89d68
...
...
@@ -2,7 +2,7 @@
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"
inheritedJdk
"
/>
<orderEntry
type=
"
jdk"
jdkName=
"Python 3.7 (model_monitor)"
jdkType=
"Python SDK
"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
<component
name=
"TestRunnerService"
>
...
...
.idea/workspace.xml
View file @
52b89d68
This diff is collapsed.
Click to expand it.
Monitor_risk_analysis/Monitor_VLM_riskanalysi.py
View file @
52b89d68
...
...
@@ -47,12 +47,12 @@ AND applied = 1
'''
########################## DB Configuration #####################################
risk_analysis_config
=
{
'user'
:
'fengkong_read_only'
,
'password'
:
'mT2HFUgI'
,
'host'
:
'172.20.6.9'
,
'port'
:
9030
,
'database'
:
'risk_analysis'
,
'encoding'
:
'utf8'
}
risk_analysis_config
=
{
'user'
:
'fengkong_read_only'
,
'password'
:
'mT2HFUgI'
,
'host'
:
'172.20.6.9'
,
'port'
:
9030
,
'database'
:
'risk_analysis'
,
'encoding'
:
'utf8'
}
#################################################################################
pwd
=
os
.
getcwd
()
...
...
@@ -179,7 +179,7 @@ def dataManipul(df, keyword):
# df.dropna(axis=0).loc[:,keyword] = df.dropna(axis=0)[keyword].map(lambda x : np.nan if x < 0 else x )
df_count
=
df
[[
'applied_at'
,
keyword
]]
.
groupby
(
'applied_at'
)
.
count
()[
keyword
]
# need 2 recheck
df_count
=
df
[[
'applied_at'
,
keyword
]]
.
groupby
(
'applied_at'
)
[
keyword
]
.
count
()
# need 2 recheck
df_zeros
=
pd
.
Series
(
np
.
zeros
(
df_count
.
shape
),
index
=
df_count
.
index
)
df_missing
=
df
[
df
[
keyword
]
.
isnull
()]
.
fillna
(
0
)
.
groupby
(
'applied_at'
)[
keyword
]
.
count
()
...
...
@@ -341,19 +341,3 @@ for i in range(len(modelList)):
appliedType_index
+=
1
continue
appliedType_index
+=
1
README.md
0 → 100644
View file @
52b89d68
[
TOC
]
# 项目介绍
-
本项目主要用于风控模型监控.
-
运用统计绘图分析, 来检测入模特征, 客群变化, 模型性能.
-
基本流程:
数据库取数 --> 整合/处理数据 --> 绘图
-
主要统计图类别:
-
单变量分析图
-
PSI图
-
Lift Chart
# Univariant Chart
# PSI
# Lift Chart
# 贡献
-
王家华 (jiahua.wang@quantgroup.cn)
主要作者.
-
舒皓月 (haoyue.shu@quantgroup.cn)
维护者.
\ No newline at end of file
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