Giter VIP home page Giter VIP logo

glm's People

Contributors

bwlewis 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

glm's Issues

R package notes

We'll roll all these methods in to an R package.

But, the SVD Newton method will be the primary non-distributed method. We should add the following to it:

  1. R-like subset selection
  2. Full set of output stats

Also note that the termination criterion is not the same as R, we should change that.

Minimalist implementations of multinomial & negative binomial GLMs?

I always found your minimalist IRLS GLM algorithm at [http://bwlewis.github.io/GLM/ ] very handy to explain to students how GLMs work. I was wondering if, by any chance, you would also happen to have an equally minimalist implementation of multinomial & negative binomial GLMs available, ideally also using IRLS (as opposed to Newton-Raphson)?

Bug in IRLS Algorithm

These notes are incredibly useful.

I think I've found a bug though. Check "Algorithm IRLS: Iteratively reweighted least squares estimation" in the "Input" section. I think the line:

Let x_{j+1}=x_j+(A^TWA)^{โˆ’1}A^TWz.

should be

Let x_{j+1}= (A^TWA)^{โˆ’1}A^TWz.

Cholesky pivoting

In the sparse and incremental variants, the resulting linear system is solved by Cholesky decomposition with pivoting. So $X^T X \beta = X^T y$ is solved essentially with

U <- chol(crossprod(X),pivot=TRUE)
p <- attr(U,"pivot")
backsolve(U,backsolve(U,crossprod(X,y)[p],transpose=TRUE))[p]

But shouldn't the final line be

backsolve(U,backsolve(U,crossprod(X,y)[p],transpose=TRUE))[order(p)]

to invert the original permutation?

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.