Coder Social home page Coder Social logo

dswah / pygam Goto Github PK

View Code? Open in Web Editor NEW
839.0 29.0 153.0 15.94 MB

[HELP REQUESTED] Generalized Additive Models in Python

Home Page: https://pygam.readthedocs.io

License: Apache License 2.0

Python 100.00%
machine-learning data-science scientific-computing python interpretable-machine-learning gams

pygam's People

Contributors

arose13 avatar cbrummitt avatar csgka1 avatar dswah avatar eganjs avatar frantzmiccoli avatar habedi avatar jodesl avatar luclapenta avatar squat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pygam's Issues

group all glm properties

class will read better if all properties that are specific to glms are self.glm_X_ not self.X_glm_

add simple gridsearch hyperparam opt method

  • method to fit multiple times on a logspace grid for lam
  • should also know to choose the correct score vis a vis UBRE/GCV
  • should be allowed to specify search across each feature's lam if desired

y data is not in domain of link function?

X_train = np.array([1,2,3,4])
y_train = np.array([2,3,4,5])
gam = LogisticGAM()
gam.fit(X_train, y_train)

I run the above codes and raised an error"AssertionError: y data is not in domain of link function"
I don't know how to use your API.

improve __repr__ method

  • lam variable is float and should be limited in length (ie 5 sig fig)
  • wrap text around similar to sklearn

add support for selecting from various penalty matrices

create a few standard penalty matrices to chose from:

  • 2nd order smoothing (TOP)
  • circular smoothing (periodic data) (TOP)
  • harmonic smoothing (i think this is just p>=1) (TOP)
  • monotone smoothing (TOP)
  • non-negative impulse response
  • varying penalties
  • etc

Installation Directions

Hello,
I was hoping to try out your implementation of GAM. However I am not sure how I can do that.
Thanks,
Vinod

improve documentation

to document, prioritized:

  • each argument
  • each user-facing method
  • each dev-facing method

add SVD mask

eliminate corresponding columns and rows from U, D, Vt

Add minimum smoothing parameter bounds

pg 177

H is any positive semidefinite
matrix, which may be zero, but may also be used to allow lower bounds to
be imposed on the smoothing parameters, or to regularize an ill-conditioned problem.
For example, if it is required that λ1 ≥ 0.1 and λ2 ≥ 10, then we could set H =
0.1S1 + 10S2.

check AIC

ensure that AIC is computed right:

no constants missing from log likelihood, and deviance is defined correctly.
this is importnat to be able to compare models when data has different scales.

edof isnt giving expected results

  • doing full computation on small problems gives exact answer.
  • subsampling approach gives same answer
  • text suggests using rotation matrices from SVD = U, D, Vt, doesnt give right answer. Multiplying U. Ut gives identity (unsurprisingly), and trace is always the same...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.