Comments (3)
I'd enjoy working on this feature if nobody has started on it yet.
from hummingbird.
Go for it!
from hummingbird.
GradientBoostingRegressor
has an init argument https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.GradientBoostingRegressor.html that specifies the first estimator that is used to initialize the predictions, before the first GB iteration.
I think treelite raises an error when the init
argument is different form zero
. I haven't checked with them directly but I assume it's because they can only compile trees, not arbitrary estimators.
Would this be an issue with hummingbird as well?
Regarding #64: the HistGradientBoosting
estimators don't accept an init
parameter, but they do have an internal _baseline_prediction
which usually corresponds to the average of the target and which is automatically added to any prediction. This thing isn't a tree and it isn't part of the _predictors
list, it's just a private float attribute (EDIT: in multiclass settings it's an array of size n_classes
). So maybe #64 will need to take care of that manually?
Alternatively I think we could consider converting _baseline_prediction
into a single-node tree in sklearn (I don't think we can do much internally about init
though :/)
from hummingbird.
Related Issues (20)
- incorrect prediction from torchscript model converted from xgboost classifier trained with multi-label dataset HOT 8
- Build is failing - SKL 1.3 release HOT 1
- TVM MacOS pipeline failing again HOT 1
- New LGBM Version 4.0.0 changes HOT 2
- TVM + Mac HOT 3
- Performing simple inference HOT 3
- XGBoost 2.0.0 breaks tests HOT 8
- Example cases for DecisionTreeClassifier HOT 2
- onnxruntime==1.16.0 release breaks tests HOT 3
- if i have saved a pytorch_based model, i want to run inference on cpu, how to change the codes? HOT 5
- Adding more ONNX data types
- ONNXMLGather breaks tests HOT 2
- Support for sklearn training HOT 1
- Github Actions changes
- SKL 1.4 release breaks build HOT 3
- coredumps on Ubuntu pipeline runs HOT 2
- Documentation deploy problem
- Need to update setup.py description
- Is "Hummingbird" trademarked? HOT 3
- [Tracking Issue] Upgrade Apache TVM to v0.16.0
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 hummingbird.