Closed Lucienxhh closed 2 years ago
Thanks for using LightGBM!
LightGBM does not fit a regression model like y = mx + b
the way you may be used to with something like linear regression. Instead, it fits a sequence of trees.
So there is not a concept of "regression coefficients" for LightGBM the way that you might be used to with other types of regression.
If you're new to gradient boosting with trees, XGBoost's docs have an excellent guide: https://xgboost.readthedocs.io/en/stable/tutorials/model.html.
For LightGBM-specific details, see https://lightgbm.readthedocs.io/en/v3.3.2/Features.html.
thanks a lot, i get it.
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.
Summary
I use
lightgbm.LGBMRegressor
for regression prediction. however, i cannot find any API for regression coefficient.Motivation
Provide regression coefficient for
lightgbm.LGBMRegressor
, as the name LGBMRegressor implies.