#426426th of 433 in ML frameworks and libraries

pygam

Generalized Additive Models in Python with a scikit-learn-style API

Stars
1k
License
Apache-2.0
Last commit
Jan 2026
Last release
Dec 2025
Language
Python
Stars, last 29 weeks+30
8 May 2026: 995 stars15 May 2026: 996 stars22 May 2026: 997 stars29 May 2026: 999 stars5 Jun 2026: 1,000 stars12 Jun 2026: 1,002 stars19 Jun 2026: 1,002 stars26 Jun 2026: 1,004 stars3 Jul 2026: 1,005 stars10 Jul 2026: 1,007 stars17 Jul 2026: 1,008 stars24 Jul 2026: 1,009 stars31 Jul 2026: 1,010 stars7 Aug 2026: 1,010 stars14 Aug 2026: 1,011 stars21 Aug 2026: 1,011 stars28 Aug 2026: 1,013 stars4 Sept 2026: 1,013 stars11 Sept 2026: 1,014 stars18 Sept 2026: 1,015 stars25 Sept 2026: 1,017 stars2 Oct 2026: 1,020 stars9 Oct 2026: 1,020 stars16 Oct 2026: 1,020 stars23 Oct 2026: 1,020 stars30 Oct 2026: 1,022 stars6 Nov 2026: 1,022 stars13 Nov 2026: 1,022 stars20 Nov 2026: 1,024 stars27 Nov 2026: 1,025 stars

995 on 8 May 20261,025 on 27 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

pyGAM fits Generalized Additive Models, where each feature gets a smooth function built from penalized B-splines and a link function relates the sum to the target. The API follows scikit-learn and scipy conventions. It runs on CPU using linear algebra routines, and Intel MKL can speed up large constrained models.

Who it is for: Data scientists wanting interpretable non-linear models in Python

Strengths

  • Per-feature effects can be inspected separately, giving interpretable non-linear models
  • Penalized B-splines model non-linear relationships without manual feature transforms
  • scikit-learn-style API; installs with pip or conda-forge
  • Distributions and link functions live in separate modules, so new ones can be added

Weaknesses

  • Acceleration needs Numpy linked to MKL, which is tricky to install with Conda
  • Pip's Numpy-MKL is outdated; a third-party build is the suggested workaround
  • Feature functions are penalized B-splines; other smoother types are not documented in the README
  • Tabular statistical modeling only; no LLM or deep learning features

What it needs

  • no GPU
  • Needs numpy, scipy, Intel MKL (optional)
  • Models: Generalized Additive Models, penalized B-splines

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#424pyldavisInteractive visualization of fitted LDA topic models in Python notebooks Live demo ↗ (opens in a new tab)1.8k starsBSD-3-Clause12 out of 100
#425pfrlPyTorch library of deep RL algorithms such as DQN, PPO, SAC and TD31.3k starsMIT11 out of 100
#427sumo-rlGymnasium and PettingZoo environments for RL traffic signal control in SUMO1.1k starsMIT9 out of 100
#428xaiPython library for data imbalance and model bias analysis in tabular ML1.3k starsMIT8 out of 100
#429torchviewGraphviz visualizations of PyTorch model graphs with tensor shapes1.1k starsMIT8 out of 100