Skip to content
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

Add BoostFromAverage value as an attribute to LightGBM models. #4313

Closed
JoshuaC3 opened this issue May 21, 2021 · 1 comment
Closed

Add BoostFromAverage value as an attribute to LightGBM models. #4313

JoshuaC3 opened this issue May 21, 2021 · 1 comment

Comments

@JoshuaC3
Copy link

Summary

Given that boost_from_average is used in training, expose this value on the model as an attribute.

Motivation

TLDR; It is an important value to know in many post-processing and post-analysis calculations: Feature Importance, Concept Drift, Tree Plots, etc.

For more information see: #4234 #4235 #3905 #4065.

Description

from #4235 (comment)

A simple solution is to make the average score available to the Python API for some cases the user want to know its value, but without removing the average from the first tree. And the EBM style interpretability can be calculated internally by subtracting in C++ or Python part. With the average being stored, it won't be difficult to calculate the EBM style interpretability. In other words, we subtract the average from the model only when calculating the EBM style interpretability, but leave the prediction logic and model file unchanged.

References

@StrikerRUS
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants