Giter Club home page Giter Club logo

Comments (12)

henriezhang avatar henriezhang commented on July 28, 2024 1

@hcho3 well done!

from treelite.

henriezhang avatar henriezhang commented on July 28, 2024

when set the num_trees=1 the result is similar:
origin model result:
image

treelite retule:
image

when set num_trees=2 the result is begin different:
origin model result:
image
treelite result:
image

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@henriezhang Is it possible to post your model?

from treelite.

henriezhang avatar henriezhang commented on July 28, 2024

my model is more than 2G, how post to you?

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@henriezhang Dropbox or Google Drive link will work. I’ll make sure the bug is fixed.

from treelite.

henriezhang avatar henriezhang commented on July 28, 2024

please give me your email? I send you a simple model have the same problem

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

[email protected]

from treelite.

henriezhang avatar henriezhang commented on July 28, 2024

@hcho3 I have sanded you the model to your email.

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@henriezhang #81 should fix the bug. Thanks so much for reporting!

from treelite.

henuxhj avatar henuxhj commented on July 28, 2024

On the same experiment parameters(num_tree=500, depth=20, leaves=255 ), treelite cost more memory than before, It generate more source code than be before. And treelite write source code on disk after generate total source code. It may cause OOM .
Is there any way to solve this problem?
Thanks

from treelite.

hcho3 avatar hcho3 commented on July 28, 2024

@henuxhj This is because your model has high cardinality categorical features, and Treelite used to truncate high categorical values. So the larger code you get is the correct code (in the sense of giving correct prediction).

Please set parallel_comp option when compiling, to reduce memory consumption. This will break the 500 tree models into smaller pieces.

model.export_lib(toolchain='gcc', libpath='./a.so',
                verbose=True, params={'parallel_comp':500})

from treelite.

henuxhj avatar henuxhj commented on July 28, 2024

thank you so much, I'll try.

from treelite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.