Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading protobuf RF model with single tree and single leaf node #104

Closed
jtkucera opened this issue Jul 13, 2019 · 1 comment
Closed

Comments

@jtkucera
Copy link

I created a simple protobuf representation of a Random Forest model with a single tree containing a single leaf node. However when I try to load it I get:

Check failed: node.leaf_vector_size() > 0 (0 vs. 0)

I am using Treelite version 0.32 on Mac OS-X. After creating the protobuf file I loaded it in Python 3.6 using the code below.

Attaching the protobuf file as a .gz file . (It is only a few bytes)
and the code to generate it.
model1.protobuf.gz
test-protobuf-rf.tar.gz

import treelite
model = treelite.Model.load('model1.protobuf')
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/treelite/frontend.py", line 350, in load
ctypes.byref(handle)))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/treelite/core.py", line 50, in _check_call
raise TreeliteError(_LIB.TreeliteGetLastError())
treelite.common.util.TreeliteError: b'[19:10:44] /Users/travis/build/hcho3/treelite-wheels/treelite/src/frontend/protobuf.cc:51: Check failed: node.leaf_vector_size() > 0 (0 vs. 0) \n\nStack trace returned 1 entries:\n[bt] (0) 0 libtreelite.dylib 0x0000000110d20b7c dmlc::StackTraceabi:cxx11 + 364\n\n'

@hcho3 hcho3 mentioned this issue Sep 10, 2019
3 tasks
@hcho3 hcho3 closed this as completed Oct 14, 2020
@hcho3
Copy link
Collaborator

hcho3 commented Oct 14, 2020

Closing this, as I decided against supporting Protobuf in Treelite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants