Commit 0c850911 authored by 段英荣's avatar 段英荣

Merge branch 'linUCB' into 'master'

modify linucb

See merge request alpha/physical!134
parents f931776a 4efacf5a
......@@ -61,9 +61,9 @@ def get_home_recommend_topic_ids(user_id,device_id,offset,size,query=None,query_
tag_recommend_redis_key = "physical:linucb:tag_recommend:device_id:" + str(device_id)
recommend_tag_list = []
# tag_recommend_val = redis_client.get(tag_recommend_redis_key)
# if tag_recommend_val:
# recommend_tag_list = json.loads(tag_recommend_val)
tag_recommend_val = redis_client.get(tag_recommend_redis_key)
if tag_recommend_val:
recommend_tag_list = json.loads(str(tag_recommend_val,encoding="utf-8"))
recommend_topic_ids = []
have_read_topic_id_list = list()
......
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