-
Notifications
You must be signed in to change notification settings - Fork 123
Description
Facing issues and errors while converting a XGBRegressor .pkl file into Onnx file. Using skl2onnx==1.19.1 still facing errors even though mentioned in the tag of this version of library that, "Fix conversion for XGBClassifier and XGBRegressor https://github.com/onnx/sklearn-onnx/issues/[#1157](https://github.com/onnx/sklearn-onnx/pull/1157)".
Tried adding custom converters in the source code of the library to fix the issue and then used the patched library, but still facing the same error.
Error: raise MissingShapeCalculator( skl2onnx.common.exceptions.MissingShapeCalculator: Unable to find a shape calculator for type '<class 'xgboost.sklearn.XGBRegressor'>'.
It usually means the pipeline being converted contains a transformer or a predictor with no corresponding converter implemented in sklearn-onnx. If the converted is implemented in another library, you need to register the converted so that it can be used by sklearn-onnx (function update_registered_converter). If the model is not yet covered by sklearn-onnx, you may raise an issue to https://github.com/onnx/sklearn-onnx/issues to get the converter implemented or even contribute to the project. If the model is a custom model, a new converter must be implemented. Examples can be found in the gallery.
Would be grateful if anyone would help me to fix this.