Commit 2a3b099d authored by 段英荣's avatar 段英荣

调试

parent 36e61f6e
...@@ -275,7 +275,7 @@ if __name__ == "__main__": ...@@ -275,7 +275,7 @@ if __name__ == "__main__":
test_feature = [user_feature_list[0],user_feature_list[0]] test_feature = [user_feature_list[0],user_feature_list[0]]
print(test_feature) print(test_feature)
all_diary_content_redis_dict = redis_client.hgetall("strategy:linucb:matrix:content_type:diary") all_diary_content_redis_dict = redis_client.hgetall("strategy:linucb:matrix:content_type:diary")
top_tag_dict, top_tag_set = LinUCB.linucb_recommend_tag(all_diary_content_redis_dict,test_feature,list(all_diary_content_redis_dict.keys())) top_tag_dict, top_tag_set = LinUCB.linucb_recommend_tag(all_diary_content_redis_dict,test_feature,list(all_diary_content_redis_dict.keys())[:1000])
print(time.time()-begin) print(time.time()-begin)
print(top_tag_dict) print(top_tag_dict)
......
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