Open robsonucl opened 3 years ago
Ah wow this is a weird case indeed! But at first glance it seems to me that the model has produced a good representation of the data. [1]
Can you tell me what you were expecting?
Also, could you share some details about the model setup?
lam
smoothing value and any other penaltiesAnd then share a histogram of your Y-data / dependent variable?
[1] my interpretation:
I see some undesirable qualities of this model:
lam
smoothness penalty for this dimension in order to enforce more similar values (so that one isnt large and positive while its neighbor is large and negative)Let me know what you think!
Hi, I found this weird bug when plotting the estimated curve against the observed data. Any idea why this is happening? I only adapted your code to include my data (matrix X). Thank you!
`for i, term in enumerate(gam.terms): if term.isintercept: continue