Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
model-data-test
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
model-data-test
Commits
45b68aa5
Commit
45b68aa5
authored
Feb 08, 2022
by
桂秋月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cd6d079a
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7694 additions
and
27 deletions
+7694
-27
workspace.xml
.idea/workspace.xml
+2
-1
2022-02-08.log
logs/2022-02-08.log
+5413
-0
Automatic_Handler.py
model_data_api/handler/Automatic_Handler.py
+26
-26
settings.cpython-37.pyc
model_data_test/__pycache__/settings.cpython-37.pyc
+0
-0
data_fs_assemble_v11_score.json
...2-08 16-21-35-122265/data/data_fs_assemble_v11_score.json
+2149
-0
detail_fs_assemble_v11_score.json
... 16-21-35-122265/detail/detail_fs_assemble_v11_score.json
+104
-0
No files found.
.idea/workspace.xml
View file @
45b68aa5
...
...
@@ -6,7 +6,8 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"65ec9bc1-9334-4fb0-a73d-621c8e760de6"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/model_data_test/settings.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/model_data_test/settings.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/logs/2022-02-08.log"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/logs/2022-02-08.log"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/model_data_api/handler/Automatic_Handler.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/model_data_api/handler/Automatic_Handler.py"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
logs/2022-02-08.log
View file @
45b68aa5
This diff is collapsed.
Click to expand it.
model_data_api/handler/Automatic_Handler.py
View file @
45b68aa5
...
...
@@ -23,35 +23,35 @@ class AutomaticHandler(BaseHandler):
self
.
auto_feature
=
[]
self
.
auto_dataset
=
{
"data_basic"
:{
"model_name"
:
self
.
model_name
,
"count"
:
self
.
user_count
},
"data_detail"
:[]}
try
:
url
=
'http://rc-model-exec.quantgroups.com/manage/features'
r
=
requests
.
post
(
url
,
data
=
{
'codes'
:
self
.
model_name
})
if
r
.
status_code
==
200
:
response
=
r
.
json
()
self
.
feature_name
=
response
[
'data'
][
self
.
model_name
][
'new'
]
+
response
[
'data'
][
self
.
model_name
][
'old'
]
print
(
'获取模型新旧数据:'
,
self
.
feature_name
)
result
=
self
.
get_auto
()
self
.
write
(
JsonUtil
.
build_json_data
(
code
=
result
[
'code'
],
message
=
result
[
'message'
],
result
=
result
[
'result'
],
json_path
=
result
[
'json_path'
]
))
self
.
flush
()
self
.
finish
()
except
:
self
.
write
(
JsonUtil
.
build_json_data
(
code
=
500
,
message
=
"特征列表获取失败"
,
result
=
[],
json_path
=
''
))
self
.
flush
()
self
.
finish
()
else
:
self
.
write
(
JsonUtil
.
build_json_data
(
code
=
JsonUtil
.
Constants
.
Code_Param_Error
,
message
=
JsonUtil
.
Constants
.
Msg_Param_Error
#try :
url
=
'http://rc-model-exec.quantgroups.com/manage/features'
r
=
requests
.
post
(
url
,
data
=
{
'codes'
:
self
.
model_name
})
if
r
.
status_code
==
200
:
response
=
r
.
json
()
self
.
feature_name
=
response
[
'data'
][
self
.
model_name
][
'new'
]
+
response
[
'data'
][
self
.
model_name
][
'old'
]
print
(
'获取模型新旧数据:'
,
self
.
feature_name
)
result
=
self
.
get_auto
()
self
.
write
(
JsonUtil
.
build_json_data
(
code
=
result
[
'code'
],
message
=
result
[
'message'
],
result
=
result
[
'result'
],
json_path
=
result
[
'json_path'
]
))
self
.
flush
()
self
.
finish
()
# except:
# self.write(JsonUtil.build_json_data(code=500,
# message="特征列表获取失败",
# result = [],
# json_path = ''
# ))
# self.flush()
# self.finish()
# else:
# self.write(JsonUtil.build_json_data(code=JsonUtil.Constants.Code_Param_Error,
# message=JsonUtil.Constants.Msg_Param_Error
# ))
# self.flush()
# self.finish()
def
get_auto
(
self
):
modelsData
=
ModelsDataManager
()
...
...
model_data_test/__pycache__/settings.cpython-37.pyc
View file @
45b68aa5
No preview for this file type
suite/fs_assemble_v11_score/2022-02-08 16-21-35-122265/data/data_fs_assemble_v11_score.json
0 → 100644
View file @
45b68aa5
This diff is collapsed.
Click to expand it.
suite/fs_assemble_v11_score/2022-02-08 16-21-35-122265/detail/detail_fs_assemble_v11_score.json
0 → 100644
View file @
45b68aa5
{
"offline_base_feature#purchased_addr_ambi_num"
:
[
37
],
"offline_base_feature#stored_addr_num"
:
[
73
],
"offline_behavior_feature#purchased_orderno"
:
[
15
],
"offline_behavior_feature#user_clk_all_sku_max_price_7d"
:
[
51
],
"offline_behavior_feature#user_clk_rc_sku_max_price_7d"
:
[
77
],
"offline_behavior_feature#user_clk_sc_sku_max_frequence_price_7d"
:
[
88
],
"third_data_source#union_pay_advisors_UPPA009"
:
[
91
],
"third_data_source#union_pay_advisors_UPPC071"
:
[
44
],
"third_data_source#union_pay_advisors_UPPC073"
:
[
8
],
"third_data_source#union_pay_advisors_UPPC075"
:
[
52
],
"third_data_source#union_pay_advisors_UPPC094"
:
[
20
],
"third_data_source#union_pay_advisors_UPPC146"
:
[
75
],
"third_data_source#union_pay_advisors_UPPC174"
:
[
29
],
"third_data_source#union_pay_advisors_UPPC189"
:
[
3
],
"third_data_source#union_pay_advisors_UPPC191"
:
[
58
],
"third_data_source#union_pay_advisors_UPPC242"
:
[
55
],
"third_data_source#union_pay_advisors_UPPC244"
:
[
5
],
"third_data_source#union_pay_advisors_UPPD001"
:
[
86
],
"third_data_source#union_pay_advisors_UPPD005"
:
[
4
],
"third_data_source#union_pay_advisors_UPPD010"
:
[
99
],
"third_data_source#union_pay_advisors_UPPD025"
:
[
47
],
"third_data_source#union_pay_advisors_UPPD029"
:
[
8
],
"third_data_source#union_pay_advisors_UPPE015"
:
[
76
],
"third_data_source#union_pay_advisors_UPPE016"
:
[
70
],
"third_data_source#union_pay_advisors_UPPE031"
:
[
32
],
"third_data_source#union_pay_advisors_UPPE047"
:
[
98
],
"third_data_source#union_pay_advisors_UPPE050"
:
[
71
],
"third_data_source#union_pay_advisors_UPPE070"
:
[
37
],
"third_data_source#union_pay_advisors_UPPE071"
:
[
33
],
"third_data_source#union_pay_advisors_UPPE073"
:
[
52
],
"third_data_source#union_pay_advisors_UPPE075"
:
[
45
],
"third_data_source#union_pay_advisors_UPPE079"
:
[
65
],
"third_data_source#union_pay_advisors_UPPE080"
:
[
22
],
"third_data_source#union_pay_advisors_UPPE125"
:
[
54
]
}
\ 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