Commit 52b89d68 authored by 舒皓月's avatar 舒皓月

添加一个项目介绍 v0.0.1

parent 9a3d42b6
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <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"> <component name="PyCharmProfessionalAdvertiser">
<option name="shown" value="true" /> <option name="shown" value="true" />
</component> </component>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4"> <module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <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" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
<component name="TestRunnerService"> <component name="TestRunnerService">
......
This diff is collapsed.
...@@ -47,12 +47,12 @@ AND applied = 1 ...@@ -47,12 +47,12 @@ AND applied = 1
''' '''
########################## DB Configuration ##################################### ########################## DB Configuration #####################################
risk_analysis_config = {'user' : 'fengkong_read_only', risk_analysis_config = {'user': 'fengkong_read_only',
'password' : 'mT2HFUgI', 'password': 'mT2HFUgI',
'host' : '172.20.6.9', 'host': '172.20.6.9',
'port' : 9030, 'port': 9030,
'database' : 'risk_analysis', 'database': 'risk_analysis',
'encoding' : 'utf8'} 'encoding': 'utf8'}
################################################################################# #################################################################################
pwd = os.getcwd() pwd = os.getcwd()
...@@ -179,7 +179,7 @@ def dataManipul(df, keyword): ...@@ -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.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_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() df_missing = df[df[keyword].isnull()].fillna(0).groupby('applied_at')[keyword].count()
...@@ -341,19 +341,3 @@ for i in range(len(modelList)): ...@@ -341,19 +341,3 @@ for i in range(len(modelList)):
appliedType_index += 1 appliedType_index += 1
continue continue
appliedType_index += 1 appliedType_index += 1
[TOC]
# 项目介绍
- 本项目主要用于风控模型监控.
- 运用统计绘图分析, 来检测入模特征, 客群变化, 模型性能.
- 基本流程:
数据库取数 --> 整合/处理数据 --> 绘图
- 主要统计图类别:
- 单变量分析图
- PSI图
- Lift Chart
# Univariant Chart
# PSI
# Lift Chart
# 贡献
- 王家华 (jiahua.wang@quantgroup.cn)
主要作者.
- 舒皓月 (haoyue.shu@quantgroup.cn)
维护者.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment