14
$\begingroup$

I know that R has gam and mgcv libraries for generalized additive models. But I am having difficulty finding their counterparts in the Python ecosystem (statsmodels only has prototype in the sandbox). Is anyone aware of existing python libraries? Who knows this might be a good project to develop/contribute to scikit-learn if not.

$\endgroup$
  • $\begingroup$ statsmodels had a GSOC project for GAM and penalized splines github.com/statsmodels/statsmodels/pull/2744 $\endgroup$ – Josef Mar 5 '16 at 3:13
  • $\begingroup$ @user333700 Interesting. Is this distinct from the scikit-learn GSOC '15 project described here? : github.com/scikit-learn/scikit-learn/wiki/… $\endgroup$ – Pylander Mar 6 '16 at 21:39
  • $\begingroup$ It's completely independent of scikit-learn. In the first round, as in the PR, only GLM will be supported. scikit-learn didn't have a GSOC project for it, AFAIK. $\endgroup$ – Josef Mar 6 '16 at 22:42
20
$\begingroup$

I've written a Python implementation of GAMs using penalized B-splines.

check it out here: https://github.com/dswah/pyGAM

I've included lots of link functions, distributions and features.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.