onnxmltools icon indicating copy to clipboard operation
onnxmltools copied to clipboard

Unable to convert scikit-leanr stack classifier with xgboost (1.5.2)

Open azachar opened this issue 1 year ago • 1 comments

Hello,

Using the latest onnxmltools I am getting a weird error:

File "../python3.10/site-packages/onnxmltools/convert/xgboost/operator_converters/XGBoost.py", line 149, in _remap_nodeid nid = jsnode['nodeid']

I am using xgbosst 1.5.2. and i registered a xgboost convertor like this

update_registered_converter(
    XGBClassifier, 'XGBClassifier',
    calculate_linear_classifier_output_shapes,
    convert_xgboost, parser=custom_parser,
    options={'zipmap': [False, True, 'columns'],
                'nocl': [False, True]})

Thank you for any advice.

Best regards, Andrej

azachar avatar Mar 01 '23 01:03 azachar