Commit 22e22503 authored by 张彦钊's avatar 张彦钊

add note for test

parent 96c077ee
......@@ -17,6 +17,7 @@ MODEL_VERSION = ''
lr = 0.03
l2_lambda = 0.002
class FFMFormatPandas:
def __init__(self):
self.field_index_ = None
......@@ -201,12 +202,13 @@ if __name__ == "__main__":
if empty==1:
time.sleep(60)
else:
old_device_id_list = pd.read_csv(DIRECTORY_PATH + "data_set_device_id.csv")["device_id"].values.tolist()
for device_id in device_id_list:
if device_id in old_device_id_list:
router(device_id)
else:
print("该用户不是老用户,不能预测")
end = time.time()
time_cost = (end - start)
print("耗时{}秒".format(time_cost))
print("有数据")
# old_device_id_list = pd.read_csv(DIRECTORY_PATH + "data_set_device_id.csv")["device_id"].values.tolist()
# for device_id in device_id_list:
# if device_id in old_device_id_list:
# router(device_id)
# else:
# print("该用户不是老用户,不能预测")
# end = time.time()
# time_cost = (end - start)
# print("耗时{}秒".format(time_cost))
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