Commit 8c751a04 authored by 段英荣's avatar 段英荣

调试

parent aec99f46
......@@ -75,7 +75,9 @@ class Generate_Feature_Info(object):
@classmethod
def get_tagv3_label_onehot(cls,label_encoder,tagv3_name_list):
try:
onehot_encoder = OneHotEncoder().fit(label_encoder.transform(tagv3_name_list))
label_encode_results = label_encoder.transform(tagv3_name_list)
label_encode_results = np.array([label_encode_results]).T
onehot_encoder = OneHotEncoder().fit(label_encode_results)
return onehot_encoder
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
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