{"action":"created","comment":{"url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/comments/79944660","id":79944660,"diff_hunk":"@@ -678,47 +688,100 @@ def fit_predict(self, X, y):\n         \"\"\"\n         return self.fit(X, y).predict(X)\n \n-    def score(self, y, yhat, ynull=None, method='deviance'):\n+    def score(self, X, y):\n         \"\"\"Score the model.\n \n         Parameters\n         ----------\n-        y : array, shape (n_samples, [n_classes])\n+        X : array,\n+            (n_samples, n_features)\n             The true labels.\n-        yhat : array, shape (n_samples, [n_classes])\n+        y : array,\n+            (n_samples, [n_classes])\n             The estimated labels.\n-        ynull : None | array, shape (n_samples, [n_classes])\n-            The labels for the null model. Must be None if method is 'deviance'\n-        method : str\n-            One of 'pseudo_R2' or 'deviance'\n+\n+        Returns\n+        -------\n+        score: array | float\n+            array when score is called by a list of estimators `glm.score()`\n+            float when score is called by a sliced estimator `glm[0].score()`\n+\n+            Note that if you want compatibility with sciki-learn's\n+            pipeline, cross_val_score, or GridSearchCV then you should\n+            only pass sliced estimators:\n+\n+            from sklearn.grid_search import GridSearchCV","path":"pyglmnet/pyglmnet.py","position":180,"original_position":180,"commit_id":"ac8d1495323ab3e46405a6d8a286badce6b412ff","original_commit_id":"ac8d1495323ab3e46405a6d8a286badce6b412ff","user":{"login":"jasmainak","id":15852194,"avatar_url":"https://avatars.githubusercontent.com/u/15852194?v=3","gravatar_id":"","url":"https://api.github.com/users/jasmainak","html_url":"https://github.com/jasmainak","followers_url":"https://api.github.com/users/jasmainak/followers","following_url":"https://api.github.com/users/jasmainak/following{/other_user}","gists_url":"https://api.github.com/users/jasmainak/gists{/gist_id}","starred_url":"https://api.github.com/users/jasmainak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasmainak/subscriptions","organizations_url":"https://api.github.com/users/jasmainak/orgs","repos_url":"https://api.github.com/users/jasmainak/repos","events_url":"https://api.github.com/users/jasmainak/events{/privacy}","received_events_url":"https://api.github.com/users/jasmainak/received_events","type":"User","site_admin":false},"body":"does this render as python code?","created_at":"2016-09-21T22:13:00Z","updated_at":"2016-09-21T22:13:00Z","html_url":"https://github.com/pavanramkumar/pyglmnet/pull/152#discussion_r79944660","pull_request_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152","_links":{"self":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/comments/79944660"},"html":{"href":"https://github.com/pavanramkumar/pyglmnet/pull/152#discussion_r79944660"},"pull_request":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152"}}},"pull_request":{"url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152","id":86234485,"html_url":"https://github.com/pavanramkumar/pyglmnet/pull/152","diff_url":"https://github.com/pavanramkumar/pyglmnet/pull/152.diff","patch_url":"https://github.com/pavanramkumar/pyglmnet/pull/152.patch","issue_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/152","number":152,"state":"open","locked":false,"title":"[MRG] renamed distributions for consistency with R and statsmodels","user":{"login":"pavanramkumar","id":3664715,"avatar_url":"https://avatars.githubusercontent.com/u/3664715?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanramkumar","html_url":"https://github.com/pavanramkumar","followers_url":"https://api.github.com/users/pavanramkumar/followers","following_url":"https://api.github.com/users/pavanramkumar/following{/other_user}","gists_url":"https://api.github.com/users/pavanramkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanramkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanramkumar/subscriptions","organizations_url":"https://api.github.com/users/pavanramkumar/orgs","repos_url":"https://api.github.com/users/pavanramkumar/repos","events_url":"https://api.github.com/users/pavanramkumar/events{/privacy}","received_events_url":"https://api.github.com/users/pavanramkumar/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-21T20:22:56Z","updated_at":"2016-09-21T22:40:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c99ea8f55d1c8ac276b7b7dc4fc5375a248d5dd8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152/commits","review_comments_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152/comments","review_comment_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/152/comments","statuses_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/statuses/ac8d1495323ab3e46405a6d8a286badce6b412ff","head":{"label":"pavanramkumar:distr","ref":"distr","sha":"ac8d1495323ab3e46405a6d8a286badce6b412ff","user":{"login":"pavanramkumar","id":3664715,"avatar_url":"https://avatars.githubusercontent.com/u/3664715?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanramkumar","html_url":"https://github.com/pavanramkumar","followers_url":"https://api.github.com/users/pavanramkumar/followers","following_url":"https://api.github.com/users/pavanramkumar/following{/other_user}","gists_url":"https://api.github.com/users/pavanramkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanramkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanramkumar/subscriptions","organizations_url":"https://api.github.com/users/pavanramkumar/orgs","repos_url":"https://api.github.com/users/pavanramkumar/repos","events_url":"https://api.github.com/users/pavanramkumar/events{/privacy}","received_events_url":"https://api.github.com/users/pavanramkumar/received_events","type":"User","site_admin":false},"repo":{"id":55302570,"name":"pyglmnet","full_name":"pavanramkumar/pyglmnet","owner":{"login":"pavanramkumar","id":3664715,"avatar_url":"https://avatars.githubusercontent.com/u/3664715?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanramkumar","html_url":"https://github.com/pavanramkumar","followers_url":"https://api.github.com/users/pavanramkumar/followers","following_url":"https://api.github.com/users/pavanramkumar/following{/other_user}","gists_url":"https://api.github.com/users/pavanramkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanramkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanramkumar/subscriptions","organizations_url":"https://api.github.com/users/pavanramkumar/orgs","repos_url":"https://api.github.com/users/pavanramkumar/repos","events_url":"https://api.github.com/users/pavanramkumar/events{/privacy}","received_events_url":"https://api.github.com/users/pavanramkumar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pavanramkumar/pyglmnet","description":"Python implementation of elastic-net regularized generalized linear models","fork":false,"url":"https://api.github.com/repos/pavanramkumar/pyglmnet","forks_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/forks","keys_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/teams","hooks_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/hooks","issue_events_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/events{/number}","events_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/events","assignees_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/assignees{/user}","branches_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/branches{/branch}","tags_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/tags","blobs_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/statuses/{sha}","languages_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/languages","stargazers_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/stargazers","contributors_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/contributors","subscribers_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/subscribers","subscription_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/subscription","commits_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/contents/{+path}","compare_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/merges","archive_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/downloads","issues_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues{/number}","pulls_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls{/number}","milestones_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/milestones{/number}","notifications_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/labels{/name}","releases_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/releases{/id}","deployments_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/deployments","created_at":"2016-04-02T15:46:24Z","updated_at":"2016-09-21T16:00:36Z","pushed_at":"2016-09-21T20:44:38Z","git_url":"git://github.com/pavanramkumar/pyglmnet.git","ssh_url":"git@github.com:pavanramkumar/pyglmnet.git","clone_url":"https://github.com/pavanramkumar/pyglmnet.git","svn_url":"https://github.com/pavanramkumar/pyglmnet","homepage":"http://pavanramkumar.github.io/pyglmnet/","size":4685,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":31,"forks":19,"open_issues":31,"watchers":34,"default_branch":"master"}},"base":{"label":"pavanramkumar:master","ref":"master","sha":"8907dfdc0435ad1e791a4c5e828d2be88a464763","user":{"login":"pavanramkumar","id":3664715,"avatar_url":"https://avatars.githubusercontent.com/u/3664715?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanramkumar","html_url":"https://github.com/pavanramkumar","followers_url":"https://api.github.com/users/pavanramkumar/followers","following_url":"https://api.github.com/users/pavanramkumar/following{/other_user}","gists_url":"https://api.github.com/users/pavanramkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanramkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanramkumar/subscriptions","organizations_url":"https://api.github.com/users/pavanramkumar/orgs","repos_url":"https://api.github.com/users/pavanramkumar/repos","events_url":"https://api.github.com/users/pavanramkumar/events{/privacy}","received_events_url":"https://api.github.com/users/pavanramkumar/received_events","type":"User","site_admin":false},"repo":{"id":55302570,"name":"pyglmnet","full_name":"pavanramkumar/pyglmnet","owner":{"login":"pavanramkumar","id":3664715,"avatar_url":"https://avatars.githubusercontent.com/u/3664715?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanramkumar","html_url":"https://github.com/pavanramkumar","followers_url":"https://api.github.com/users/pavanramkumar/followers","following_url":"https://api.github.com/users/pavanramkumar/following{/other_user}","gists_url":"https://api.github.com/users/pavanramkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanramkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanramkumar/subscriptions","organizations_url":"https://api.github.com/users/pavanramkumar/orgs","repos_url":"https://api.github.com/users/pavanramkumar/repos","events_url":"https://api.github.com/users/pavanramkumar/events{/privacy}","received_events_url":"https://api.github.com/users/pavanramkumar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pavanramkumar/pyglmnet","description":"Python implementation of elastic-net regularized generalized linear models","fork":false,"url":"https://api.github.com/repos/pavanramkumar/pyglmnet","forks_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/forks","keys_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/teams","hooks_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/hooks","issue_events_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/events{/number}","events_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/events","assignees_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/assignees{/user}","branches_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/branches{/branch}","tags_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/tags","blobs_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/statuses/{sha}","languages_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/languages","stargazers_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/stargazers","contributors_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/contributors","subscribers_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/subscribers","subscription_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/subscription","commits_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/contents/{+path}","compare_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/merges","archive_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/downloads","issues_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues{/number}","pulls_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls{/number}","milestones_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/milestones{/number}","notifications_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/labels{/name}","releases_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/releases{/id}","deployments_url":"https://api.github.com/repos/pavanramkumar/pyglmnet/deployments","created_at":"2016-04-02T15:46:24Z","updated_at":"2016-09-21T16:00:36Z","pushed_at":"2016-09-21T20:44:38Z","git_url":"git://github.com/pavanramkumar/pyglmnet.git","ssh_url":"git@github.com:pavanramkumar/pyglmnet.git","clone_url":"https://github.com/pavanramkumar/pyglmnet.git","svn_url":"https://github.com/pavanramkumar/pyglmnet","homepage":"http://pavanramkumar.github.io/pyglmnet/","size":4685,"stargazers_count":34,"watchers_count":34,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":31,"forks":19,"open_issues":31,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152"},"html":{"href":"https://github.com/pavanramkumar/pyglmnet/pull/152"},"issue":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/152"},"comments":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/pavanramkumar/pyglmnet/statuses/ac8d1495323ab3e46405a6d8a286badce6b412ff"}}}}
{"actor":{"display_login":"jasmainak"}}