Skip to content

Releases: dswah/pyGAM

v0.9.1

13 Feb 11:25
a6c14e4
Compare
Choose a tag to compare

New Behavior

  • test and support python 3.8, 3.9, 3.10, 3.11, and 3.12

Bug Fixes

  • use dynamic versioning to automatically set package version. fixes #339 #336

v0.9.0

17 Mar 16:13
398ad84
Compare
Choose a tag to compare

New Features

  • move to Poetry for dependency management
  • use flake8 + black for linting

Bug Fixes:

  • use int instead of np.int

Breaking changes

  • remove support for python 2

v0.8.0

31 Oct 17:14
e345c86
Compare
Choose a tag to compare

New Features

  • cyclic p-splines: you can now train models with periodic features by using the 'cp' basis like so:
GAM(s(0, basis='cp'))
  • factor smooths now allow dummy coding, via:
GAM(f(0, coding='dummy'))

Models using this coding scheme are more statistically interpretable , and computationally less expensive than those using one-hot encodings.

Bug Fixes

  • models can mix constrained terms and un-constrained tensor-terms
  • tensor terms can be constrained

v0.7.2

29 Oct 16:31
349473c
Compare
Choose a tag to compare

Bug Fixes

  • Fix not None element existance judgement bug in terms.py thanks @BeefOnionDumplings !
  • Added a warning issued in summary indicating that there is likely a bug in the p-values

v0.7.1

22 Sep 01:17
9b426bb
Compare
Choose a tag to compare

Bug Fixes

  • fixed bug where np.int64 did not count as integers.
    the following no longer fails:
LinearGAM().gridsearch(X, y, n_splines=np.arange(5, 10)).summary()

v0.7.0

20 Sep 16:25
1dd48e0
Compare
Choose a tag to compare

New Features

  • Documentation!!!

Bug Fixes

  • removed WIP method randomsearch

v0.6.3

17 Sep 14:14
10615a9
Compare
Choose a tag to compare

New Features

  • gridsearch(...) allows searching across a predefined grid of points, without doing the cartesian product, when grid is a np.ndarray of shape (n_points, len(flatten(gam.lam))). This is useful for RandomSearchCV - style behavior.

Bug Fixes

  • estimate_r_squared(X, y) no longer raises AttributeError
  • dtype=auto no longer allowed for terms
  • intercept.lam = None

v0.6.1

13 Sep 15:28
75701bc
Compare
Choose a tag to compare

New Features

  • easier global arguments for terms
GAM(s(0) + s(1), n_splines=10).fit(X, y)

will broadcast n_splines=10 to all terms

Bug Fixes

  • fixed inconsistencies in GAM instatiation, where
GAM(lam=0.6).gridsearch(X, y)

worked for multi-dimensional X

but not

GAM(lam=0.6).gridsearch(X, y)

v0.5.5

07 Jul 14:18
f076346
Compare
Choose a tag to compare

New Featrues

  • all GAM classes have a verbose argument. this makes them compatible with sklearn GridsearchCV + RandomizedsearchCV
  • add toy_classification dataset
  • move generate_X_grid to GAM method

Bug Fixes

  • users should get a more pythonic experience with partial_dependence by never needing to index with i+1
  • _initial_estimate() method no longer fails on value nudge for purely integer observations
  • regenerate images
  • bugs in readme
  • fixes bug where poorly conditioned matrix would fail when using skcholmod
  • make2d should not be verbose in initial_estimate()

v0.5.4

29 Jun 14:35
62a2e57
Compare
Choose a tag to compare

Bug Fixes

  • PoissonGAM no longer produces -inf log-likelihoods when using non-integer exposure.
  • PoissonGAM checks exposure, weight, and y array shapes before fitting.