{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5470","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5470/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5470/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5470/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5470","id":112225334,"number":5470,"title":"Ridge path - another perspective","user":{"login":"Kornel","id":628457,"avatar_url":"https://avatars.githubusercontent.com/u/628457?v=3","gravatar_id":"","url":"https://api.github.com/users/Kornel","html_url":"https://github.com/Kornel","followers_url":"https://api.github.com/users/Kornel/followers","following_url":"https://api.github.com/users/Kornel/following{/other_user}","gists_url":"https://api.github.com/users/Kornel/gists{/gist_id}","starred_url":"https://api.github.com/users/Kornel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kornel/subscriptions","organizations_url":"https://api.github.com/users/Kornel/orgs","repos_url":"https://api.github.com/users/Kornel/repos","events_url":"https://api.github.com/users/Kornel/events{/privacy}","received_events_url":"https://api.github.com/users/Kornel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-19T20:24:21Z","updated_at":"2016-01-09T17:31:04Z","closed_at":"2015-10-20T07:01:05Z","pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5470","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5470","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/5470.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/5470.patch"},"body":"I've been looking at the example and found it confusing that we have to set fit_intercept=False. This was because Y = 1, hence an optimal solution exists where the intercept is 1 and all other coefficients are zero. That's why I've decided to play around with this example.\r\n\r\nHere I propose another perspective, where we set Y = bX + e, an solution which is easy to find for the estimator, and two plots: one where we can see how the coefficients are selected properly and another where we see how the error (estimator.coef_ - b) changes.\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/170261786","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5470#issuecomment-170261786","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5470","id":170261786,"user":{"login":"MechCoder","id":1867024,"avatar_url":"https://avatars.githubusercontent.com/u/1867024?v=3","gravatar_id":"","url":"https://api.github.com/users/MechCoder","html_url":"https://github.com/MechCoder","followers_url":"https://api.github.com/users/MechCoder/followers","following_url":"https://api.github.com/users/MechCoder/following{/other_user}","gists_url":"https://api.github.com/users/MechCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MechCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechCoder/subscriptions","organizations_url":"https://api.github.com/users/MechCoder/orgs","repos_url":"https://api.github.com/users/MechCoder/repos","events_url":"https://api.github.com/users/MechCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MechCoder/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T17:31:04Z","updated_at":"2016-01-09T17:31:04Z","body":"@amueller Does https://github.com/scikit-learn/scikit-learn/pull/6148 answer your question(at least partly)?"}}