Skip to content

[dask] support 'pred_contrib' in predict() #3713

Closed

Description

Summary

LightGBM's Booster.predict() can be use to get feature contributions, by passing pred_contrib=True. This should be supported for model objects from the Dask interface as well.

Motivation

This is useful for inspecting the relative importance of features in a LightGBM model.

Description

The check at

should also check whether pred_contrib=True has been passed, and return the full DataFrame of the result.

References

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions