-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Could we add a booster similar to gblinear used by xgboost? #4459
Comments
Hi |
Hi @Fish-Soup: Thank you for the reply but I am afraid not. On the one hand, a single boosting tree with linear function as leaves is different from a full boosting model with a linear booster; on the other hand, currently monotone_constraint does not work at the level of leaves when linear_tree=True. |
what if you set num_leafs to 1? |
@Denisevi4 as far as I know num_leaves has to be greater than 1. |
hi @shiyu1994 @btrotta , I think num_leave=1 could be achieved, can you take a look? |
Thank you very much for revisiting this request! @guolinke, @shiyu1994, @btrotta and @jameslamb |
I think currently, a tree with LightGBM/src/boosting/gbdt.cpp Lines 406 to 407 in 01568cf
In addition, current But I believe a small modification of GBDT and LinearTreeLearner can achieve the goal of gblinear. |
Closed in favor of being in #2302. We decided to keep all feature requests in one place. Welcome to contribute this feature! Please re-open this issue (or post a comment if you are not a topic starter) if you are actively working on implementing this feature. |
In addition, if such a feature can be added in the future, it would be great to make it compatible with monotone_constraints so the sign of the coefficient of each variable in the linear model can be specified. Thank you. |
Hi:
Is it possible to add a linear booster similar to gblinear used by xgboost, please? Combined with monotone_constraint, it will be a very valuable alternative for building linear models.
Let me know if you need any specific user case to justify this request.
Appreciate your help!
@jameslamb
The text was updated successfully, but these errors were encountered: