| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

NotesWeek4

This version was saved 13 years, 1 month ago View current version     Page history
Saved by mike@mbowles.com
on February 2, 2011 at 2:35:55 pm
 

Here's R-code for in-class examples:

    A new version of the IRLS algo for logistic regression.  This version adds calculation of covariance matrix for betas.

          LogisticRegression(1).R

     A new version of glmnet applied to zipcode data.  this version does training on all 10 digits and runs against the test set

          to calculate error rate on out of sample test-set.

          glmnet.R

     Some simple examples using spline functions as part of linear least squares fits. 

          BS.R

     Using glmnet to classify iris data

          iris.R

     Several different basis expansions in conjunction with glmnet to classify sonar data.

          Sonar.R

 

Cross-validation plot for 10-digit handwritten zip code character recognition

     

 

 

Generalized Linear Models approximate the data with a curve similar to

     Linear Models which approximate the data with a straight line.

 

In this plot points are approximated with a line (using lm in r)

In this plot points are approximated with a curve (using glm in r)

      (the r code used to produce these plots)

Comments (0)

You don't have permission to comment on this page.