dswah / pygam Goto Github PK
View Code? Open in Web Editor NEW[HELP REQUESTED] Generalized Additive Models in Python
Home Page: https://pygam.readthedocs.io
License: Apache License 2.0
[HELP REQUESTED] Generalized Additive Models in Python
Home Page: https://pygam.readthedocs.io
License: Apache License 2.0
class will read better if all properties that are specific to glms are self.glm_X_
not self.X_glm_
the edges are wrong
want quick way of checking model.
right now its buried in the penalty matrix method.
it should be somewhere else.
this is a thing that people do.
kind of already do it...
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.
this will make it easy to make custom GAMs!
you should be able to penalize each feature differently, duh.
for example, logistic GAM shouldnt be allowed to fit on y in whole real line
would like to be able to see these per feature function
however, would like models to stay in main module
maybe even QR decomposition ?
add these puppies.
needed for generating knots, basis functions, penalty matrices
I want to make predictions of time series. Can this project process time series data ?
estimated scale should go here otherwise no one will know where to find it.
create a few standard penalty matrices to chose from:
it'll be more clear this way
need to find optimal lambda vector somehow :)
Hello,
I was hoping to try out your implementation of GAM. However I am not sure how I can do that.
Thanks,
Vinod
Using piecewise constant splines, no difference penalty
to document, prioritized:
see how jacques implemented his versioning in
https://github.com/jwkvam/bowtie/blob/master/bowtie/__init__.py
eliminate corresponding columns and rows from U, D, Vt
lol.
we dont need to compute the whole A (influence, hat) matrix for the edof estimation.
try doing just the diagonal.
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.
should not be allowed to fit n basis functions with less than n data-points.
woohoo!
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.
there are some threads where people specifically request GAMs.
for the 2nd order difference penalty to make sense, the knots have to be evenly spaced.
easy.
one should be able to specify multiple penalties per feature, and each penalty should get its own lambda
any distribution might have a known scale, and the API should be abstract enough to allow this.
its almost free.
pg 164 in Wood introduces this concept. elaborated in appendix A.5
maybe someone wants to use their own penalty
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.