Description
A LightGBM Booster does not necessarily have 'objective' in its param attribute dictionary. The documented default behavior in LightGBM is to assume regression without auto-setting the 'objective' key in the Booster.params dictionary if 'objective' is missing from param (a dictionary passed into the Training API functiontrain).
Reproduction
The following is a link to a notebook containing details for error reproduction and a view of the stack trace:
Notebook for Reproduction
Note This corresponds to an issue on slundberg/shap.
Description A LightGBM Booster does not necessarily have
'objective'
in itsparam
attribute dictionary. The documented default behavior in LightGBM is to assume regression without auto-setting the'objective'
key in theBooster.params
dictionary if'objective'
is missing fromparam
(a dictionary passed into the Training API functiontrain
).Reproduction The following is a link to a notebook containing details for error reproduction and a view of the stack trace: Notebook for Reproduction
Thanks for your responsiveness!
Nandish Gupta Data Science Engineer, SolasAI