<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1107147718367558732.post755284391566175077..comments</id><updated>2011-12-09T15:09:21.886-08:00</updated><category term='parallel computing'/><category term='courses'/><category term='ai'/><category term='causality'/><category term='basketball'/><category term='dannys_predictions'/><category term='books'/><category term='data structure'/><category term='challenge problem'/><category term='lawyers'/><category term='toronto'/><category term='methodology'/><category term='art'/><category term='analytics'/><category term='ranking'/><category term='algorithms'/><category term='uncertainty'/><category term='memorization'/><category term='hadoop'/><category term='classification'/><category term='linear_programming'/><category term='psychology'/><category term='online marketing'/><category term='pain machine'/><category term='taxes'/><category term='netflix'/><category term='data analysis'/><category term='scipy'/><category term='schools'/><category term='sports'/><category term='scrabble'/><category term='probability'/><category term='c++'/><category term='talent'/><category term='dynamic algorithms'/><category term='computation'/><category term='displaying code'/><category term='san francisco'/><category term='career choice'/><category term='success'/><category term='APIs'/><category term='incentives'/><category term='public_relations'/><category term='rationality'/><category term='controversies'/><category term='social networks'/><category term='summer school'/><category term='nearest neighbors'/><category term='buildings'/><category term='theoretical computer science'/><category term='march_madness'/><category term='conversation starters'/><category term='the_webs'/><category term='statistics'/><category term='mcmc'/><category term='chess'/><category term='conferences'/><category term='MAP_inference'/><category term='google'/><category term='randomness'/><category term='auctions'/><category term='nutsandbolts'/><category term='structured prediction'/><category term='advertising'/><category term='military'/><category term='the real world'/><category term='beginners'/><category term='data visualization'/><category term='image_processing'/><category term='python'/><category term='biology'/><category term='lake oswego rental'/><category term='public transportation'/><category term='scott turner'/><category term='max_product_belief_propagation'/><category term='belief propagation'/><category term='code'/><category term='football'/><category term='horse racing'/><category term='learning'/><category term='artificial intelligence'/><category term='science'/><category term='linux'/><category term='computational complexity'/><category term='logistic regression'/><category term='protocol_buffers'/><category term='math'/><category term='recommendation systems'/><category term='emacs'/><category term='research'/><category term='robotics'/><category term='bayesian models'/><category term='programming'/><category term='politics'/><category term='sympy'/><category term='videos'/><category term='graduate school'/><category term='slice sampling'/><category term='matrix factorization'/><category term='graphical_models'/><category term='distributed computing'/><category term='databases'/><category term='seo'/><category term='economics'/><category term='blogger'/><category term='computer vision'/><category term='web2.0'/><category term='constraint_satisfaction'/><category term='george'/><category term='web_security'/><category term='twitter'/><category term='regularization'/><category term='history'/><category term='gambling'/><category term='machine learning'/><category term='data'/><category term='markets'/><category term='sociology'/><category term='energy use'/><category term='medicine'/><title type='text'>Comments on This Number Crunching Life: Python logistic regression (with L2 regularization...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.smellthedata.com/feeds/755284391566175077/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html'/><author><name>Danny Tarlow</name><uri>http://www.blogger.com/profile/14670021337844708633</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_cFAlw8-Y0gE/TRrm8pdSK1I/AAAAAAAAA5o/S8w-VVzdc1A/S220/mehak.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-5527732150023414723</id><published>2011-12-09T15:09:21.886-08:00</published><updated>2011-12-09T15:09:21.886-08:00</updated><title type='text'>Got it! Thanks.... That&amp;#39;ll teach me to be more...</title><summary type='text'>Got it! Thanks.... That&amp;#39;ll teach me to be more careful when reading long eqns...</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/5527732150023414723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/5527732150023414723'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1323472161886#c5527732150023414723' title=''/><author><name>Steven</name><uri>http://www.blogger.com/profile/01709301954649452354</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1384300300'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-6351599861581712625</id><published>2011-12-09T12:38:38.941-08:00</published><updated>2011-12-09T12:38:38.941-08:00</updated><title type='text'>Hi Steven, the (k&amp;gt;0) should only zero out the c...</title><summary type='text'>Hi Steven, the (k&amp;gt;0) should only zero out the contribution to the gradient of the regularization term.  So it&amp;#39;s saying that we don&amp;#39;t care a priori about keeping the bias term small.  The full gradient for the bias term should not in general be 0.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/6351599861581712625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/6351599861581712625'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1323463118941#c6351599861581712625' title=''/><author><name>Danny Tarlow</name><uri>http://www.blogger.com/profile/14670021337844708633</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14202909819301920933'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://1.bp.blogspot.com/_cFAlw8-Y0gE/TRrm8pdSK1I/AAAAAAAAA5o/S8w-VVzdc1A/S220/mehak.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-675792927'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-7045863024047315006</id><published>2011-12-09T12:05:03.289-08:00</published><updated>2011-12-09T12:05:03.289-08:00</updated><title type='text'>This is a silly question, but in your dB_k functio...</title><summary type='text'>This is a silly question, but in your dB_k function, everything is multiplied by (k&amp;gt;0). Since the bias term (I think) corresponds to the k=0 term of the beta vector, it looks like you&amp;#39;re keeping the bias term fixed at 0, since (k&amp;gt;0) = 0 when k = 0. &lt;br /&gt;&lt;br /&gt;Am I misunderstanding something here, or was this a purposeful choice?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/7045863024047315006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/7045863024047315006'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1323461103289#c7045863024047315006' title=''/><author><name>Steven</name><uri>http://www.blogger.com/profile/01709301954649452354</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1384300300'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-7658860648648237123</id><published>2011-12-05T16:15:17.378-08:00</published><updated>2011-12-05T16:15:17.378-08:00</updated><title type='text'>This is useful, thanks.

Currently this works for ...</title><summary type='text'>This is useful, thanks.&lt;br /&gt;&lt;br /&gt;Currently this works for a single dependent variable/y.  Do you think it could be extended to multiple y e.g. for categorization purposes?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/7658860648648237123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/7658860648648237123'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1323130517378#c7658860648648237123' title=''/><author><name>willrc</name><uri>http://www.blogger.com/profile/13369260750293039403</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-351525169'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-5442864444202360757</id><published>2011-07-22T09:49:08.072-07:00</published><updated>2011-07-22T09:49:08.072-07:00</updated><title type='text'>A wonderful Post</title><summary type='text'>A wonderful Post</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/5442864444202360757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/5442864444202360757'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1311353348072#c5442864444202360757' title=''/><author><name>V1P3R</name><uri>http://www.blogger.com/profile/14122733843950656141</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-484037029'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-4811663087723173873</id><published>2011-07-22T09:48:58.323-07:00</published><updated>2011-07-22T09:48:58.323-07:00</updated><title type='text'>A wonderful Post</title><summary type='text'>A wonderful Post</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/4811663087723173873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/4811663087723173873'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1311353338323#c4811663087723173873' title=''/><author><name>V1P3R</name><uri>http://www.blogger.com/profile/14122733843950656141</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-484037029'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-3057837366810975292</id><published>2011-06-07T10:40:35.739-07:00</published><updated>2011-06-07T10:40:35.739-07:00</updated><title type='text'>What is the license on this code?  Do you allow co...</title><summary type='text'>What is the license on this code?  Do you allow commercial use?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/3057837366810975292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/3057837366810975292'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1307468435739#c3057837366810975292' title=''/><author><name>DF</name><uri>http://www.blogger.com/profile/10928712770628693547</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1243121270'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-8150569181673098891</id><published>2010-11-01T16:20:10.445-07:00</published><updated>2010-11-01T16:20:10.445-07:00</updated><title type='text'>A wonderful Post! Thanks a lot! 
Also thanks to Ja...</title><summary type='text'>A wonderful Post! Thanks a lot! &lt;br /&gt;Also thanks to Jason for his tips.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/8150569181673098891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/8150569181673098891'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1288653610445#c8150569181673098891' title=''/><author><name>CVK</name><uri>http://www.blogger.com/profile/08410729976640533706</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://4.bp.blogspot.com/_86WjuxnwydE/SSQrYWZQAQI/AAAAAAAAAEU/IJMV65L-r0g/S220/karthik2.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1872694121'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-2853274435219678288</id><published>2009-10-15T07:55:53.165-07:00</published><updated>2009-10-15T07:55:53.165-07:00</updated><title type='text'>Thanks, Jason.  I appreciate the (very good) tips....</title><summary type='text'>Thanks, Jason.  I appreciate the (very good) tips.&lt;br /&gt;&lt;br /&gt;When I get some spare time, maybe I&amp;#39;ll walk down the hall to George&amp;#39;s office and hammer out a really clean version of this.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/2853274435219678288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/2853274435219678288'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1255618553165#c2853274435219678288' title=''/><author><name>Danny Tarlow</name><uri>http://www.blogger.com/profile/14670021337844708633</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14202909819301920933'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_cFAlw8-Y0gE/SWMB_zIPlRI/AAAAAAAAAVA/jNuwRPrtAW0/S220/Photo+28.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-675792927'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-6468193827244860114</id><published>2009-10-15T06:23:31.694-07:00</published><updated>2009-10-15T06:23:31.694-07:00</updated><title type='text'>A few tips:

* The basic approach of using classes...</title><summary type='text'>A few tips:&lt;br /&gt;&lt;br /&gt;* The basic approach of using classes is a good one---avoids you needing to pass arguments via the optimizer to objective/gradient calculations.&lt;br /&gt;&lt;br /&gt;* Test data, the parameter vector and the optimization method should &lt;b&gt;not&lt;/b&gt; be part of the class or instance.  You should be able to interchange these w/o changing your model.&lt;br /&gt;&lt;br /&gt;* Your class should define (1</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/6468193827244860114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/6468193827244860114'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1255613011694#c6468193827244860114' title=''/><author><name>Pussinboots</name><uri>http://www.blogger.com/profile/00489496856755184870</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp3.blogger.com/_XSVoaR9LrRo/R-GH4P_o71I/AAAAAAAAAEg/fwwBD9dAZVU/S220/jason-crop.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-72619097'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-2923779788273734264</id><published>2009-08-04T15:19:08.347-07:00</published><updated>2009-08-04T15:19:08.347-07:00</updated><title type='text'>Alex,

Do you mean &lt;a href="http://blog.smelltheda...</title><summary type='text'>Alex,&lt;br /&gt;&lt;br /&gt;Do you mean &lt;a href="http://blog.smellthedata.com/2009/03/data-driven-march-madness-predictions.html" rel="nofollow"&gt;my other post on march madness predictions&lt;/a&gt;?  It was fairly popular on Digg and a few small news outlets, but it would be news to me if it made it to ESPN.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/2923779788273734264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/2923779788273734264'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1249424348347#c2923779788273734264' title=''/><author><name>Danny Tarlow</name><uri>http://www.blogger.com/profile/14670021337844708633</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14202909819301920933'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_cFAlw8-Y0gE/SWMB_zIPlRI/AAAAAAAAAVA/jNuwRPrtAW0/S220/Photo+28.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-675792927'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-407905147422856467</id><published>2009-08-04T15:08:40.775-07:00</published><updated>2009-08-04T15:08:40.775-07:00</updated><title type='text'>didn&amp;#39;t i see this exact example on ESPN just b...</title><summary type='text'>didn&amp;#39;t i see this exact example on ESPN just before MM?</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/407905147422856467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/407905147422856467'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1249423720775#c407905147422856467' title=''/><author><name>alex_land</name><uri>http://www.blogger.com/profile/16041019983406055716</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1935290341'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-8782498878369167874</id><published>2009-06-07T13:04:42.904-07:00</published><updated>2009-06-07T13:04:42.904-07:00</updated><title type='text'>So first off, I&amp;#39;m far from being a great softw...</title><summary type='text'>So first off, I&amp;#39;m far from being a great software architect, and I really haven&amp;#39;t thought about object oriented design since second year of undergrad, so I don&amp;#39;t have super strong feelings about this.&lt;br /&gt;&lt;br /&gt;But I&amp;#39;ll still bite.  I probably buy the argument with respect to the test data -- it may be cleaner not to store it as an instance variable, since it&amp;#39;s not really a &amp;</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/8782498878369167874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/8782498878369167874'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1244405082904#c8782498878369167874' title=''/><author><name>Danny Tarlow</name><uri>http://www.blogger.com/profile/14670021337844708633</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14202909819301920933'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_cFAlw8-Y0gE/SWMB_zIPlRI/AAAAAAAAAVA/jNuwRPrtAW0/S220/Photo+28.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-675792927'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-2817874902599003696</id><published>2009-06-06T22:28:24.843-07:00</published><updated>2009-06-06T22:28:24.843-07:00</updated><title type='text'>I guess the use of the class keyword isn&amp;#39;t rea...</title><summary type='text'>I guess the use of the class keyword isn&amp;#39;t really what bothers me, it is that the class has the training and testing data as instance data.  Using class or not is a mostly irrelevant implementation detail.  What happens if a user of your class allows the data instance variables to be their defaults of None and then tries to call a function?  I expect an ungraceful crash.  I am not suggesting </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/2817874902599003696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/2817874902599003696'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1244352504843#c2817874902599003696' title=''/><author><name>George</name><uri>http://www.blogger.com/profile/12790096318551866567</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-899028934'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-115477200516344287</id><published>2009-06-06T13:34:54.644-07:00</published><updated>2009-06-06T13:34:54.644-07:00</updated><title type='text'>Good point about the single predict function -- I&amp;...</title><summary type='text'>Good point about the single predict function -- I&amp;#39;ll probably change mine to work the same way.  I also haven&amp;#39;t used the getopt module, but that sounds useful.  Thanks for the pointer.&lt;br /&gt;&lt;br /&gt;As for the classes, though, I&amp;#39;m pretty deep in the make-everything-a-class boat, so we&amp;#39;ll have to agree to disagree on that =).</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/115477200516344287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/115477200516344287'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1244320494644#c115477200516344287' title=''/><author><name>Danny Tarlow</name><uri>http://www.blogger.com/profile/14670021337844708633</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14202909819301920933'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_cFAlw8-Y0gE/SWMB_zIPlRI/AAAAAAAAAVA/jNuwRPrtAW0/S220/Photo+28.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-675792927'/></entry><entry><id>tag:blogger.com,1999:blog-1107147718367558732.post-4208872220531323399</id><published>2009-06-06T09:32:31.875-07:00</published><updated>2009-06-06T09:32:31.875-07:00</updated><title type='text'>Not bad.  I have my own simple python 2-class logi...</title><summary type='text'>Not bad.  I have my own simple python 2-class logistic regression implementation (supports L1 and L2 regularization) that only depends on numpy (I try to avoid dependencies on the rest of scipy and matplotlib which means the calling code has to plot things).&lt;br /&gt;&lt;br /&gt;A few differences.  I a slightly tweaked version of Roland&amp;#39;s python port of Carl Rasmussen&amp;#39;s minimize.m instead of the </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/4208872220531323399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1107147718367558732/755284391566175077/comments/default/4208872220531323399'/><link rel='alternate' type='text/html' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html?showComment=1244305951875#c4208872220531323399' title=''/><author><name>George</name><uri>http://www.blogger.com/profile/12790096318551866567</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.smellthedata.com/2009/06/python-logistic-regression-with-l2.html' ref='tag:blogger.com,1999:blog-1107147718367558732.post-755284391566175077' source='http://www.blogger.com/feeds/1107147718367558732/posts/default/755284391566175077' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-899028934'/></entry></feed>
