dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python
https://pygam.readthedocs.io
Apache License 2.0
876 stars 161 forks source link

Contribution of each smooth term #358

Open AdamWhiteXAI opened 3 months ago

AdamWhiteXAI commented 3 months ago

Is there anyway I can get the 'additional contribution' each smooth term makes to the final GAM score for a particular input? For example if my model is : LinearGAM( terms=s(7) + s(13) + s(1) + s(15) + intercept) then what contribution does s(7) make when 'variable 7' equals 10

Is it worth trying to hack into PyGam's code to get this?