{"id":121,"date":"2017-06-08T16:54:05","date_gmt":"2017-06-08T16:54:05","guid":{"rendered":"http:\/\/bskog.com\/ai\/?p=121"},"modified":"2017-06-08T16:54:05","modified_gmt":"2017-06-08T16:54:05","slug":"lasso-regression","status":"publish","type":"post","link":"http:\/\/bskog.com\/ai\/2017\/06\/08\/lasso-regression\/","title":{"rendered":"Lasso regression"},"content":{"rendered":"<p>In order to avoid overfitting in regression due to too many feature while at the same time have enough features to minimize the sum of squared errors in order to get a more accurate fit on the test data, you need to regularize the regression.<\/p>\n<p>This can be done with a Lasso regression where you want to minimize the sim of squared errors + plus a penalty parameters times the\u00a0coefficient of the regression (which indicates the amount of features)<\/p>\n<p>minimize SSE +\u00a0\u03bb|\u03b2|<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to avoid overfitting in regression due to too many feature while at the same time have enough features to minimize the sum of squared errors in order to get a more accurate fit on the test data, you need to regularize the regression. This can be done with a Lasso regression where you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/bskog.com\/ai\/2017\/06\/08\/lasso-regression\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Lasso regression&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,32],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-regression","category-shallow-machine-learning"],"_links":{"self":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":0,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"wp:attachment":[{"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bskog.com\/ai\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}