You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError: Unable to find column name '年齢' among names ['pclass', 'sex', '__', 'fare', 'embarked']. Make sure the input names specified with parameter initial_types fits the column names specified in the pipeline to convert.
#774
Closed
dc-aichara opened this issue
Nov 8, 2021
· 2 comments
I am getting RuntimeError: Unable to find column name "Some_Japanese_word" among names [columns with some Japanese characters in in column names] error when I try to convert SKLearn object (ColumnTransformer) into ONNX object with convert_sklearn(model, initial_types=initial_type) .
I made a fix with the suggested change. However, onnxruntime does not support such character yet so it is difficult to test that the predictions are the same in that case.
I am getting
RuntimeError: Unable to find column name "Some_Japanese_word" among names [columns with some Japanese characters in in column names]
error when I try to convert SKLearn object (ColumnTransformer) into ONNX object withconvert_sklearn(model, initial_types=initial_type)
.After looking into code, I found that function
sklearn-onnx/skl2onnx/common/_topology.py
Line 919 in fab5a97
_
which causes error.Note: Replacing
sklearn-onnx/skl2onnx/common/_topology.py
Line 932 in fab5a97
seed = re.sub('[^\\w+]', '_', seed)
fixes Japanese character issue.Please run following code to reproduce this issue.
The text was updated successfully, but these errors were encountered: