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

add note for test

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