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
When trying to convert an SK model to ONNX I get the below. Any idea what I can do to still get it converted?
File "/.pyenv/versions/3.11.8/lib/python3.11/site-packages/hummingbird/ml/operator_converters/_gbdt_commons.py", line 167, in convert_gbdt_common
raise NotImplementedError("Post transform {} not implemeneted yet".format(extra_config[constants.POST_TRANSFORM]))
NotImplementedError: Post transform <hummingbird.ml.operator_converters._tree_commons.ApplyBasePredictionPostTransform object at 0x367896b10> not implemeneted yet
Printed the extra config generated just before the POST_TRANSFORM and got:
dummy_input=pd.DataFrame([np.random.rand(42).tolist()], columns=column_names)
# Load the MultiOutputRegressor modelmodel=joblib.load("Model_One.pkl")
# Use hummingbird to convert the model to ONNX# note: the XGBRegressor model requires us to provide dummy input# see example: https://github.com/microsoft/hummingbird/blob/main/notebooks/XGB-example.ipynbmodel_onnx=convert(
model,
"onnx",
dummy_input,
)
# Save the modelmodel_onnx.save("model.onnx")
The text was updated successfully, but these errors were encountered:
Hi @XavierGeerinck ! What post transform were you trying to use, if any? Was it one of the ones shown here (sigmod/tweedie/sigmoid), or something else? Are you able to share some of your SKL model code?
We may have a bug, we may have not implemented something, or it may have an onnx versioning issue.
Either way we need to fix our print statement there as object at 0x367896b10 isn't too helpful for debugging! :D
Hi All!
When trying to convert an SK model to ONNX I get the below. Any idea what I can do to still get it converted?
Printed the extra config generated just before the POST_TRANSFORM and got:
This is how I call it:
The text was updated successfully, but these errors were encountered: