Commit 45b68aa5 authored by 桂秋月's avatar 桂秋月

1

parent cd6d079a
......@@ -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" />
......
This diff is collapsed.
......@@ -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()
......
{
"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
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