Commit 6d5516dc authored by 高雅喆's avatar 高雅喆

增加一个字段

parent 7afbc29c
......@@ -151,11 +151,11 @@ class LinUCB:
ori_redis_tag_data = redis_cli.hget(redis_key, tag_id)
if not ori_redis_tag_data:
log_dict = {"device_id":device_id, "tag_id":tag_id, "ltype":"create"}
log_dict = {"device_id": device_id, "tag_id": tag_id, "ltype": "create", "biz_type": "lin_tag"}
log_maidian(log_dict, 'physical')
LinUCB.init_device_id_linucb_info(redis_client, redis_prefix, device_id,[tag_id])
else:
log_dict = {"device_id":device_id, "tag_id":tag_id, "ltype":"update"}
log_dict = {"device_id": device_id, "tag_id": tag_id, "ltype": "update", "biz_type": "lin_tag"}
log_maidian(log_dict, 'physical')
ori_redis_tag_dict = pickle.loads(ori_redis_tag_data)
new_Aa_matrix = ori_redis_tag_dict["Aa"] + np.dot(xa, xaT)
......
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