Giter VIP home page Giter VIP logo

Comments (3)

bfgray3 avatar bfgray3 commented on May 20, 2024

I'd enjoy working on this feature if nobody has started on it yet.

from hummingbird.

interesaaat avatar interesaaat commented on May 20, 2024

Go for it!

from hummingbird.

NicolasHug avatar NicolasHug commented on May 20, 2024

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)

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.