Commit 0837dc8b authored by 张彦钊's avatar 张彦钊

change test file

parent e413c7c6
......@@ -89,11 +89,18 @@ def get_pre_number():
def feature_engineer():
apps_number, app_list_map, level2_number, leve2_map, level3_number, leve3_map = get_map()
app_list_map["app_list"] = "app_list"
leve3_map["level3_ids"] = "level3_ids"
leve3_map["search_tag3"] = "search_tag3"
for i in ["level2_ids", "tag1", "tag2", "tag3", "tag4", "tag5", "tag6", "tag7","search_tag2"]:
leve2_map[i] = i
app_list_map["app_list"] = 16
leve3_map["level3_ids"] = 17
leve3_map["search_tag3"] = 18
leve2_map["level2_ids"] = 19
leve2_map["tag1"] = 20
leve2_map["tag2"] = 21
leve2_map["tag3"] = 22
leve2_map["tag4"] = 23
leve2_map["tag5"] = 24
leve2_map["tag6"] = 25
leve2_map["tag7"] = 26
leve2_map["search_tag2"] = 27
unique_values = []
db = pymysql.connect(host='172.16.40.158', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_test')
......@@ -177,8 +184,8 @@ def feature_engineer():
print("特征维度:")
print(apps_number + level2_number + level3_number + len(unique_values))
temp = list(range(16 + apps_number + level2_number + level3_number,
16 + apps_number + level2_number + level3_number + len(unique_values)))
temp = list(range(28 + apps_number + level2_number + level3_number,
28 + apps_number + level2_number + level3_number + len(unique_values)))
value_map = dict(zip(unique_values, temp))
sql = "select e.y,e.z,e.stat_date,e.ucity_id,feat.level2_ids,e.ccity_name,u.device_type,u.manufacturer," \
......
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