Fwd: hack-a-thon

6 views
Skip to first unread message

Tricia Hoffman

unread,
Nov 30, 2010, 10:28:50 AM11/30/10
to machine-lea...@googlegroups.com
Here is Stephen's Code from the Hack-a-Thon

---------- Forwarded message ----------
From: Stephen O'Connell <s...@saoconnell.com>
Date: Mon, Nov 22, 2010 at 5:48 PM
Subject: hack-a-thon
To: Tricia Hoffman <hoffman...@gmail.com>


Tricia,

Here is the R code from Saturday.

I have the code working with a couple of exceptions:

1.  Linear regression will not work if you add the months matrix.  If you want to use lm, don't put ss$month on the dataframe and add the month matrix, you'll also need to change subset that removes the sales key and month from the dataframe before running regression.

2. ridge regression will work on the complete mod_data (with the months), however, the my ridge function and the class ridge code, with cross validation would not work with more than one iteration, i.e. no cross validation.

I did not take the time to figure out why these things are not working.  I thought everyone would prefer some subset of the code.

I have placed the title_key1.csv file at the following url: https://public.me.com/oconste  it was too large to send, hopefully everyone can pick it up from there.

I have also attached my merge.pl which I used to create the file that title_key1,csv was sourced from.  I think Sandra has distributed files like this, however, I have not had a chance to compare.

Thanks
Stephen...



--
Patricia Hoffman PhD

Chair Association of Computing Machinery - Data Mining SIG
hoffman...@gmail.com

http://www.patriciahoffmanphd.com/
http://www.linkedin.com/in/patriciahoffmanphd
http://twitter.com/patriciahoffman
hearst.R
merge.pl
Reply all
Reply to author
Forward
0 new messages