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
552e8ad0
Commit
552e8ad0
authored
Dec 20, 2019
by
舒皓月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20191220_2
parent
6b9a3ffe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AUC_time.py
AUC_time.py
+5
-5
No files found.
AUC_time.py
View file @
552e8ad0
...
@@ -290,10 +290,10 @@ class AUCMonitor:
...
@@ -290,10 +290,10 @@ class AUCMonitor:
# 获取MongoDB数据.
# 获取MongoDB数据.
if
self
.
if_read
:
if
self
.
if_read
:
condition
=
{
'
lam_loan_start_date
'
:
{
'$gte'
:
'
%
s 00:00:00'
%
self
.
date_list
[
0
],
condition
=
{
'
wf_created_at
'
:
{
'$gte'
:
'
%
s 00:00:00'
%
self
.
date_list
[
0
],
'$lte'
:
'
%
s 00:00:00'
%
self
.
date_list
[
-
1
]},
'$lte'
:
'
%
s 00:00:00'
%
self
.
date_list
[
-
1
]},
'passdue_day'
:
{
'$ne'
:
None
}}
'passdue_day'
:
{
'$ne'
:
None
}}
fields
=
{
'wf_biz_no'
:
1
,
'
lam_loan_start_date
'
:
1
,
'wf_loan_type'
:
1
,
fields
=
{
'wf_biz_no'
:
1
,
'
wf_created_at
'
:
1
,
'wf_loan_type'
:
1
,
'passdue_day'
:
1
,
'wf_biz_channel'
:
1
,
'applied_channel_cn'
:
1
,
'passdue_day'
:
1
,
'wf_biz_channel'
:
1
,
'applied_channel_cn'
:
1
,
'lam_transaction_status'
:
1
,
'lam_transaction_status'
:
1
,
'repayment_status'
:
1
,
'repayment_status'
:
1
,
...
@@ -307,12 +307,12 @@ class AUCMonitor:
...
@@ -307,12 +307,12 @@ class AUCMonitor:
self
.
mongo_df
=
pd
.
read_csv
(
self
.
save_path
+
'data/mongo_data.csv'
)
self
.
mongo_df
=
pd
.
read_csv
(
self
.
save_path
+
'data/mongo_data.csv'
)
self
.
mongo_df
[
'applied_type'
]
=
self
.
mongo_df
[
'wf_loan_type'
]
.
apply
(
func_0
)
self
.
mongo_df
[
'applied_type'
]
=
self
.
mongo_df
[
'wf_loan_type'
]
.
apply
(
func_0
)
self
.
mongo_df
[
'applied_at'
]
=
self
.
mongo_df
[
'
lam_loan_start_date
'
]
self
.
mongo_df
[
'applied_at'
]
=
self
.
mongo_df
[
'
wf_created_at
'
]
self
.
mongo_df
[
'applied_from'
]
=
self
.
mongo_df
[
'wf_biz_channel'
]
self
.
mongo_df
[
'applied_from'
]
=
self
.
mongo_df
[
'wf_biz_channel'
]
self
.
mongo_df
[
'applied_channel'
]
=
self
.
mongo_df
[
'applied_channel_cn'
]
self
.
mongo_df
[
'applied_channel'
]
=
self
.
mongo_df
[
'applied_channel_cn'
]
del
self
.
mongo_df
[
'wf_loan_type'
]
del
self
.
mongo_df
[
'wf_loan_type'
]
del
self
.
mongo_df
[
'
lam_loan_start_date
'
]
del
self
.
mongo_df
[
'
wf_created_at
'
]
del
self
.
mongo_df
[
'wf_biz_channel'
]
del
self
.
mongo_df
[
'wf_biz_channel'
]
del
self
.
mongo_df
[
'applied_channel_cn'
]
del
self
.
mongo_df
[
'applied_channel_cn'
]
...
...
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