onnxmltools icon indicating copy to clipboard operation
onnxmltools copied to clipboard

H2O: Unsupported MOJO type

Open GeiserX opened this issue 5 years ago • 2 comments

I would like to convert this MOJO to ONNX format StackedEnsemble_AllModels_AutoML_20200729_132114.zip

But this is the stack trace I am getting:

>>> aml_lead = aml.leader.download_mojo(path="/tmp/")
>>> onnx_model = onnxmltools.convert_h2o(aml_lead)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/geiser/.local/lib/python3.8/site-packages/onnxmltools/convert/main.py", line 93, in convert_h2o
    return convert(*args, **kwargs)
  File "/home/geiser/.local/lib/python3.8/site-packages/onnxmltools/convert/h2o/convert.py", line 66, in convert
    mojo_str = h2o.print_mojo(model_path, format="json")
  File "/home/geiser/.local/lib/python3.8/site-packages/h2o/h2o.py", line 2219, in print_mojo
    raise H2OError("Unable to print MOJO: %s" % output)
h2o.exceptions.H2OError: Unable to print MOJO: ERROR: Unsupported MOJO type

The model was trained with the code included in the "how-to guide" here, in Python: http://docs.h2o.ai/h2o/latest-stable/h2o-docs/automl.html

I am using onnxmltools installed via pip, version 1.7.0

GeiserX avatar Jul 29 '20 11:07 GeiserX

CC @honzasterba

faxu avatar Aug 06 '20 23:08 faxu

Currently only GBM MOJOs are supported.

On Fri, 7 Aug 2020 at 01:47, Faith Xu [email protected] wrote:

CC @honzasterba https://github.com/honzasterba

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/onnx/onnxmltools/issues/409#issuecomment-670245048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAFQ4JAQ6DJOKBOQCDGPI3R7M6H3ANCNFSM4PLP6XXQ .

--

Jan Sterba https://twitter.com/honzasterba | http://flickr.com/honzasterba

honzasterba avatar Aug 07 '20 04:08 honzasterba