{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/amueller/kaggle_insults/pulls/2","id":46156045,"html_url":"https://github.com/amueller/kaggle_insults/pull/2","diff_url":"https://github.com/amueller/kaggle_insults/pull/2.diff","patch_url":"https://github.com/amueller/kaggle_insults/pull/2.patch","issue_url":"https://api.github.com/repos/amueller/kaggle_insults/issues/2","number":2,"state":"closed","locked":false,"title":"Update models.py","user":{"login":"prinsherbert","id":7011110,"avatar_url":"https://avatars.githubusercontent.com/u/7011110?v=3","gravatar_id":"","url":"https://api.github.com/users/prinsherbert","html_url":"https://github.com/prinsherbert","followers_url":"https://api.github.com/users/prinsherbert/followers","following_url":"https://api.github.com/users/prinsherbert/following{/other_user}","gists_url":"https://api.github.com/users/prinsherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/prinsherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prinsherbert/subscriptions","organizations_url":"https://api.github.com/users/prinsherbert/orgs","repos_url":"https://api.github.com/users/prinsherbert/repos","events_url":"https://api.github.com/users/prinsherbert/events{/privacy}","received_events_url":"https://api.github.com/users/prinsherbert/received_events","type":"User","site_admin":false},"body":"I found these sniplets of code, suggesting the rho-parameter you used here, was renamed to l1_ratio\r\n\r\nif penalty_type == L2:\r\n    rho = 1.0\r\nelif penalty_type == L1:\r\n    rho = 0.0\r\n\r\nif penalty_type >= L2:\r\n    w.scale(1.0 - (rho * eta * alpha))\r\n\r\nif penalty_type == L1 or penalty_type == ELASTICNET:\r\n    u += ((1.0 - rho) * eta * alpha)\r\n    l1penalty(w, q_data_ptr, x_ind_ptr, xnnz, u)","created_at":"2015-09-28T13:25:48Z","updated_at":"2015-09-28T18:33:35Z","closed_at":"2015-09-28T18:33:35Z","merged_at":"2015-09-28T18:33:35Z","merge_commit_sha":"5867920a916268d7be1b7fa8ef75299d2830f4ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amueller/kaggle_insults/pulls/2/commits","review_comments_url":"https://api.github.com/repos/amueller/kaggle_insults/pulls/2/comments","review_comment_url":"https://api.github.com/repos/amueller/kaggle_insults/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amueller/kaggle_insults/issues/2/comments","statuses_url":"https://api.github.com/repos/amueller/kaggle_insults/statuses/ce0ea63530394a0c502300e8219cc6acedfc83ee","head":{"label":"prinsherbert:patch-1","ref":"patch-1","sha":"ce0ea63530394a0c502300e8219cc6acedfc83ee","user":{"login":"prinsherbert","id":7011110,"avatar_url":"https://avatars.githubusercontent.com/u/7011110?v=3","gravatar_id":"","url":"https://api.github.com/users/prinsherbert","html_url":"https://github.com/prinsherbert","followers_url":"https://api.github.com/users/prinsherbert/followers","following_url":"https://api.github.com/users/prinsherbert/following{/other_user}","gists_url":"https://api.github.com/users/prinsherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/prinsherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prinsherbert/subscriptions","organizations_url":"https://api.github.com/users/prinsherbert/orgs","repos_url":"https://api.github.com/users/prinsherbert/repos","events_url":"https://api.github.com/users/prinsherbert/events{/privacy}","received_events_url":"https://api.github.com/users/prinsherbert/received_events","type":"User","site_admin":false},"repo":{"id":43302095,"name":"kaggle_insults","full_name":"prinsherbert/kaggle_insults","owner":{"login":"prinsherbert","id":7011110,"avatar_url":"https://avatars.githubusercontent.com/u/7011110?v=3","gravatar_id":"","url":"https://api.github.com/users/prinsherbert","html_url":"https://github.com/prinsherbert","followers_url":"https://api.github.com/users/prinsherbert/followers","following_url":"https://api.github.com/users/prinsherbert/following{/other_user}","gists_url":"https://api.github.com/users/prinsherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/prinsherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prinsherbert/subscriptions","organizations_url":"https://api.github.com/users/prinsherbert/orgs","repos_url":"https://api.github.com/users/prinsherbert/repos","events_url":"https://api.github.com/users/prinsherbert/events{/privacy}","received_events_url":"https://api.github.com/users/prinsherbert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prinsherbert/kaggle_insults","description":"Kaggle Submission for \"Detecting Insults in Social Commentary\"","fork":true,"url":"https://api.github.com/repos/prinsherbert/kaggle_insults","forks_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/forks","keys_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/teams","hooks_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/hooks","issue_events_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/issues/events{/number}","events_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/events","assignees_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/assignees{/user}","branches_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/branches{/branch}","tags_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/tags","blobs_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/git/refs{/sha}","trees_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/statuses/{sha}","languages_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/languages","stargazers_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/stargazers","contributors_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/contributors","subscribers_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/subscribers","subscription_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/subscription","commits_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/commits{/sha}","git_commits_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/git/commits{/sha}","comments_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/comments{/number}","issue_comment_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/issues/comments{/number}","contents_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/contents/{+path}","compare_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/merges","archive_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/downloads","issues_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/issues{/number}","pulls_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/pulls{/number}","milestones_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/milestones{/number}","notifications_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/labels{/name}","releases_url":"https://api.github.com/repos/prinsherbert/kaggle_insults/releases{/id}","created_at":"2015-09-28T13:19:52Z","updated_at":"2015-09-28T13:19:53Z","pushed_at":"2015-09-28T13:25:00Z","git_url":"git://github.com/prinsherbert/kaggle_insults.git","ssh_url":"git@github.com:prinsherbert/kaggle_insults.git","clone_url":"https://github.com/prinsherbert/kaggle_insults.git","svn_url":"https://github.com/prinsherbert/kaggle_insults","homepage":null,"size":1591,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"amueller:master","ref":"master","sha":"843d57b75f621385b357193b7fd69107cb4da18d","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"repo":{"id":5913585,"name":"kaggle_insults","full_name":"amueller/kaggle_insults","owner":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amueller/kaggle_insults","description":"Kaggle Submission for \"Detecting Insults in Social Commentary\"","fork":false,"url":"https://api.github.com/repos/amueller/kaggle_insults","forks_url":"https://api.github.com/repos/amueller/kaggle_insults/forks","keys_url":"https://api.github.com/repos/amueller/kaggle_insults/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amueller/kaggle_insults/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amueller/kaggle_insults/teams","hooks_url":"https://api.github.com/repos/amueller/kaggle_insults/hooks","issue_events_url":"https://api.github.com/repos/amueller/kaggle_insults/issues/events{/number}","events_url":"https://api.github.com/repos/amueller/kaggle_insults/events","assignees_url":"https://api.github.com/repos/amueller/kaggle_insults/assignees{/user}","branches_url":"https://api.github.com/repos/amueller/kaggle_insults/branches{/branch}","tags_url":"https://api.github.com/repos/amueller/kaggle_insults/tags","blobs_url":"https://api.github.com/repos/amueller/kaggle_insults/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amueller/kaggle_insults/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amueller/kaggle_insults/git/refs{/sha}","trees_url":"https://api.github.com/repos/amueller/kaggle_insults/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amueller/kaggle_insults/statuses/{sha}","languages_url":"https://api.github.com/repos/amueller/kaggle_insults/languages","stargazers_url":"https://api.github.com/repos/amueller/kaggle_insults/stargazers","contributors_url":"https://api.github.com/repos/amueller/kaggle_insults/contributors","subscribers_url":"https://api.github.com/repos/amueller/kaggle_insults/subscribers","subscription_url":"https://api.github.com/repos/amueller/kaggle_insults/subscription","commits_url":"https://api.github.com/repos/amueller/kaggle_insults/commits{/sha}","git_commits_url":"https://api.github.com/repos/amueller/kaggle_insults/git/commits{/sha}","comments_url":"https://api.github.com/repos/amueller/kaggle_insults/comments{/number}","issue_comment_url":"https://api.github.com/repos/amueller/kaggle_insults/issues/comments{/number}","contents_url":"https://api.github.com/repos/amueller/kaggle_insults/contents/{+path}","compare_url":"https://api.github.com/repos/amueller/kaggle_insults/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amueller/kaggle_insults/merges","archive_url":"https://api.github.com/repos/amueller/kaggle_insults/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amueller/kaggle_insults/downloads","issues_url":"https://api.github.com/repos/amueller/kaggle_insults/issues{/number}","pulls_url":"https://api.github.com/repos/amueller/kaggle_insults/pulls{/number}","milestones_url":"https://api.github.com/repos/amueller/kaggle_insults/milestones{/number}","notifications_url":"https://api.github.com/repos/amueller/kaggle_insults/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amueller/kaggle_insults/labels{/name}","releases_url":"https://api.github.com/repos/amueller/kaggle_insults/releases{/id}","created_at":"2012-09-22T14:16:53Z","updated_at":"2015-09-25T09:21:14Z","pushed_at":"2015-09-28T18:33:35Z","git_url":"git://github.com/amueller/kaggle_insults.git","ssh_url":"git@github.com:amueller/kaggle_insults.git","clone_url":"https://github.com/amueller/kaggle_insults.git","svn_url":"https://github.com/amueller/kaggle_insults","homepage":null,"size":1615,"stargazers_count":78,"watchers_count":78,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":0,"forks":42,"open_issues":0,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amueller/kaggle_insults/pulls/2"},"html":{"href":"https://github.com/amueller/kaggle_insults/pull/2"},"issue":{"href":"https://api.github.com/repos/amueller/kaggle_insults/issues/2"},"comments":{"href":"https://api.github.com/repos/amueller/kaggle_insults/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/amueller/kaggle_insults/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/amueller/kaggle_insults/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amueller/kaggle_insults/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/amueller/kaggle_insults/statuses/ce0ea63530394a0c502300e8219cc6acedfc83ee"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}