dswah / pyGAM

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

GAM results of Pygam's GAM and mgcv GAM are not matching #356

Open MRanka29 opened 4 months ago

MRanka29 commented 4 months ago

Hi,

I am using GAM of Pygam and comparing the coefficients of the fit with the gam model of MGCV.

Below is the code snipet and the coefficient results of when I use GAM model of Pygam

Code Snipet - Pygam's GAM

image

Coefficient Results - Pygam's GAM

image

Code Snipet - GAM of mgcv package in R

image

Coefficient Results - GAM of mgcv package in R

image

The coefficients of both the fit don't match. Am I missing something here?

Thanks in Advance!