Comments (12)
@hcho3 well done!
from treelite.
when set the num_trees=1 the result is similar:
origin model result:
when set num_trees=2 the result is begin different:
origin model result:
treelite result:
from treelite.
@henriezhang Is it possible to post your model?
from treelite.
my model is more than 2G, how post to you?
from treelite.
@henriezhang Dropbox or Google Drive link will work. I’ll make sure the bug is fixed.
from treelite.
please give me your email? I send you a simple model have the same problem
from treelite.
from treelite.
@hcho3 I have sanded you the model to your email.
from treelite.
@henriezhang #81 should fix the bug. Thanks so much for reporting!
from treelite.
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.
@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.
thank you so much, I'll try.
from treelite.
Related Issues (20)
- Add first-class support for multi-output models in Treelite 4.0
- API refactors
- Documentation for library writers HOT 1
- treelite prediction 4x slower than xgboost HOT 3
- Document that Left child is chosen when condition is evaluated True
- Use std::variant to implement type-based dispatching
- Do not call np.squeeze on output of predict_leaf() / predict_per_tree() HOT 1
- treelite::ConcatenateModelObjects() ought to set threshold_type and leaf_output_type fields
- Clean up serialization logic
- Support XGBoost gblinear Booster HOT 1
- Release version 3.3.0
- Release version 3.4.0
- Replace setup.py with pyproject.toml
- Treelite crashes with XGBoost 2.0 dev
- Document Treelite serialization format.
- Adopt Four-Document System to organize docs
- Refactor sklearn loader using mix-in classes
- Implement v4 serialization format
- Revamp JSON importer to make it easy to use
- Drop "max_index" postprocessor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treelite.