{"action":"opened","number":5012,"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5012","id":40498423,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/5012","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/5012.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/5012.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5012","number":5012,"state":"open","locked":false,"title":"Initialize ARPACK eigsh","user":{"login":"yanlend","id":3703497,"avatar_url":"https://avatars.githubusercontent.com/u/3703497?v=3","gravatar_id":"","url":"https://api.github.com/users/yanlend","html_url":"https://github.com/yanlend","followers_url":"https://api.github.com/users/yanlend/followers","following_url":"https://api.github.com/users/yanlend/following{/other_user}","gists_url":"https://api.github.com/users/yanlend/gists{/gist_id}","starred_url":"https://api.github.com/users/yanlend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanlend/subscriptions","organizations_url":"https://api.github.com/users/yanlend/orgs","repos_url":"https://api.github.com/users/yanlend/repos","events_url":"https://api.github.com/users/yanlend/events{/privacy}","received_events_url":"https://api.github.com/users/yanlend/received_events","type":"User","site_admin":false},"body":"`v0 = random_state.rand(M.shape[0])` leads to an initial residual vector in ARPACK which is all positive. However, this is not the absolute or squared residual, but a true difference. Thus, it is better to initialize with `randn` to have an equally distributed sign.\r\n\r\nThe effect of the previous initialization is that eigsh frequently does not converge to the correct eigenvalues, e.g. negative eigenvalues for s.p.d. matrix, which leads to an incorrect null-space.","created_at":"2015-07-21T20:04:12Z","updated_at":"2015-07-21T20:04:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5012/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5012/comments","review_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5012/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/3c52cd5b49dffd7f655df3913e34f066fce62acd","head":{"label":"yanlend:patch-2","ref":"patch-2","sha":"3c52cd5b49dffd7f655df3913e34f066fce62acd","user":{"login":"yanlend","id":3703497,"avatar_url":"https://avatars.githubusercontent.com/u/3703497?v=3","gravatar_id":"","url":"https://api.github.com/users/yanlend","html_url":"https://github.com/yanlend","followers_url":"https://api.github.com/users/yanlend/followers","following_url":"https://api.github.com/users/yanlend/following{/other_user}","gists_url":"https://api.github.com/users/yanlend/gists{/gist_id}","starred_url":"https://api.github.com/users/yanlend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanlend/subscriptions","organizations_url":"https://api.github.com/users/yanlend/orgs","repos_url":"https://api.github.com/users/yanlend/repos","events_url":"https://api.github.com/users/yanlend/events{/privacy}","received_events_url":"https://api.github.com/users/yanlend/received_events","type":"User","site_admin":false},"repo":{"id":11759040,"name":"scikit-learn","full_name":"yanlend/scikit-learn","owner":{"login":"yanlend","id":3703497,"avatar_url":"https://avatars.githubusercontent.com/u/3703497?v=3","gravatar_id":"","url":"https://api.github.com/users/yanlend","html_url":"https://github.com/yanlend","followers_url":"https://api.github.com/users/yanlend/followers","following_url":"https://api.github.com/users/yanlend/following{/other_user}","gists_url":"https://api.github.com/users/yanlend/gists{/gist_id}","starred_url":"https://api.github.com/users/yanlend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanlend/subscriptions","organizations_url":"https://api.github.com/users/yanlend/orgs","repos_url":"https://api.github.com/users/yanlend/repos","events_url":"https://api.github.com/users/yanlend/events{/privacy}","received_events_url":"https://api.github.com/users/yanlend/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yanlend/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/yanlend/scikit-learn","forks_url":"https://api.github.com/repos/yanlend/scikit-learn/forks","keys_url":"https://api.github.com/repos/yanlend/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yanlend/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yanlend/scikit-learn/teams","hooks_url":"https://api.github.com/repos/yanlend/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/yanlend/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/yanlend/scikit-learn/events","assignees_url":"https://api.github.com/repos/yanlend/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/yanlend/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/yanlend/scikit-learn/tags","blobs_url":"https://api.github.com/repos/yanlend/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yanlend/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yanlend/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/yanlend/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yanlend/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/yanlend/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/yanlend/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/yanlend/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/yanlend/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/yanlend/scikit-learn/subscription","commits_url":"https://api.github.com/repos/yanlend/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/yanlend/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/yanlend/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/yanlend/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/yanlend/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/yanlend/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yanlend/scikit-learn/merges","archive_url":"https://api.github.com/repos/yanlend/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yanlend/scikit-learn/downloads","issues_url":"https://api.github.com/repos/yanlend/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/yanlend/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/yanlend/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/yanlend/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yanlend/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/yanlend/scikit-learn/releases{/id}","created_at":"2013-07-30T07:19:43Z","updated_at":"2014-12-01T19:34:52Z","pushed_at":"2015-07-21T20:03:03Z","git_url":"git://github.com/yanlend/scikit-learn.git","ssh_url":"git@github.com:yanlend/scikit-learn.git","clone_url":"https://github.com/yanlend/scikit-learn.git","svn_url":"https://github.com/yanlend/scikit-learn","homepage":"http://scikit-learn.org","size":63613,"stargazers_count":1,"watchers_count":1,"language":"C","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":1,"default_branch":"master"}},"base":{"label":"scikit-learn:master","ref":"master","sha":"c151f6e27999abe4be4e1a8e7151c8ca0ae9a157","user":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"repo":{"id":843222,"name":"scikit-learn","full_name":"scikit-learn/scikit-learn","owner":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-learn/scikit-learn","description":"scikit-learn: machine learning in Python","fork":false,"url":"https://api.github.com/repos/scikit-learn/scikit-learn","forks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/forks","keys_url":"https://api.github.com/repos/scikit-learn/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-learn/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-learn/scikit-learn/teams","hooks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/events","assignees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-learn/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/tags","blobs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-learn/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscription","commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-learn/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-learn/scikit-learn/merges","archive_url":"https://api.github.com/repos/scikit-learn/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-learn/scikit-learn/downloads","issues_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-learn/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/scikit-learn/scikit-learn/releases{/id}","created_at":"2010-08-17T09:43:38Z","updated_at":"2015-07-21T17:51:47Z","pushed_at":"2015-07-21T19:27:44Z","git_url":"git://github.com/scikit-learn/scikit-learn.git","ssh_url":"git@github.com:scikit-learn/scikit-learn.git","clone_url":"https://github.com/scikit-learn/scikit-learn.git","svn_url":"https://github.com/scikit-learn/scikit-learn","homepage":"http://scikit-learn.org","size":126724,"stargazers_count":6810,"watchers_count":6810,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4082,"mirror_url":null,"open_issues_count":734,"forks":4082,"open_issues":734,"watchers":6810,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5012"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/5012"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5012"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5012/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5012/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5012/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/3c52cd5b49dffd7f655df3913e34f066fce62acd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}