Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is a spline and how to determine which spline term to use? #317

Open
yerol89 opened this issue Jun 21, 2022 · 0 comments
Open

What is a spline and how to determine which spline term to use? #317

yerol89 opened this issue Jun 21, 2022 · 0 comments

Comments

@yerol89
Copy link

yerol89 commented Jun 21, 2022

I am new to GAM and pyGAM. I read documentation carefully but need help with someone experienced in pyGAM for some questions.

I have a dataset with around 40 features. My problem is classification and I am planning to use LogisticGAM.

  1. I think I have not fully understand how 'splines' used in GAM? Does the model fits a spline for each and every feature?

  2. What are the differences between factor term, spline term, tensor term and why do we need these terms?

  3. When I read and searched about GAM I understand that some of my features out of 40 may have linear relation while some others have non-linear relationship with target variable. Am I supposed to enable this relationship to model manually for all these features as follows?(I don't think so but don't know what to do) And what should I consider while determining which term(factor, spline, ..) to use?

gam = LogisticGAM(f(0) + s(1) + ... + s(40))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant