Commit 4adf4331 authored by 段英荣's avatar 段英荣

调试

parent badb13e3
......@@ -139,7 +139,7 @@ class Generate_Feature_Info(object):
if len(offi_tags_v3)>0:
try:
tag_label = label_encoder.transform(offi_tags_v3)[0]
diary_feature_list = onehot_encoder.transform([tag_label]).toarray().tolist()
diary_feature_list = onehot_encoder.transform([[tag_label]]).toarray().tolist()
redis_client.hset(redis_name_content_linucb_feature, diary_id,
json.dumps(diary_feature_list))
except:
......
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