{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments/189480200","pull_request_review_id":121666047,"id":189480200,"diff_hunk":"@@ -469,6 +470,20 @@ public void SaveAsText(TextWriter writer, RoleMappedSchema schema)\n             }\n         }\n \n+        public IDataView GetSummaryDataView(RoleMappedSchema schema)\n+        {\n+            var bldr = new ArrayDataViewBuilder(Host);\n+\n+            bldr.AddColumn(\"Mean vector\", NumberType.R4, _mean);\n+            bldr.AddColumn(\"Projected mean vector\", NumberType.R4, _meanProjected);\n+            for (var i = 0; i < _rank; ++i)\n+            {","path":"src/Microsoft.ML.PCA/PcaTrainer.cs","position":19,"original_position":19,"commit_id":"9394cddc9b51208c0b46e82f47fd2def76d14fe8","original_commit_id":"9394cddc9b51208c0b46e82f47fd2def76d14fe8","user":{"login":"TomFinley","id":8295757,"avatar_url":"https://avatars1.githubusercontent.com/u/8295757?v=4","gravatar_id":"","url":"https://api.github.com/users/TomFinley","html_url":"https://github.com/TomFinley","followers_url":"https://api.github.com/users/TomFinley/followers","following_url":"https://api.github.com/users/TomFinley/following{/other_user}","gists_url":"https://api.github.com/users/TomFinley/gists{/gist_id}","starred_url":"https://api.github.com/users/TomFinley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomFinley/subscriptions","organizations_url":"https://api.github.com/users/TomFinley/orgs","repos_url":"https://api.github.com/users/TomFinley/repos","events_url":"https://api.github.com/users/TomFinley/events{/privacy}","received_events_url":"https://api.github.com/users/TomFinley/received_events","type":"User","site_admin":false},"body":"For single line statements like this, prefer this:\r\n\r\n```csharp\r\nfor (int i=0; I<foo; ++i)\r\n    yodawg += i;\r\n```\r\n\r\nto this\r\n\r\n```csharp\r\nfor (int i=0; I<foo; ++i)\r\n{\r\n    yodawg += i;\r\n}\r\n```\r\n\r\nThose extra `{`s are evil.","created_at":"2018-05-21T01:45:46Z","updated_at":"2018-05-21T01:45:46Z","html_url":"https://github.com/dotnet/machinelearning/pull/185#discussion_r189480200","pull_request_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/185","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments/189480200"},"html":{"href":"https://github.com/dotnet/machinelearning/pull/185#discussion_r189480200"},"pull_request":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/185"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/machinelearning/pulls/185","id":188894977,"html_url":"https://github.com/dotnet/machinelearning/pull/185","diff_url":"https://github.com/dotnet/machinelearning/pull/185.diff","patch_url":"https://github.com/dotnet/machinelearning/pull/185.patch","issue_url":"https://api.github.com/repos/dotnet/machinelearning/issues/185","number":185,"state":"open","locked":false,"title":"GetSummaryDataView() implementation for Pca and Linear Predictors","user":{"login":"ganik","id":18757686,"avatar_url":"https://avatars2.githubusercontent.com/u/18757686?v=4","gravatar_id":"","url":"https://api.github.com/users/ganik","html_url":"https://github.com/ganik","followers_url":"https://api.github.com/users/ganik/followers","following_url":"https://api.github.com/users/ganik/following{/other_user}","gists_url":"https://api.github.com/users/ganik/gists{/gist_id}","starred_url":"https://api.github.com/users/ganik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganik/subscriptions","organizations_url":"https://api.github.com/users/ganik/orgs","repos_url":"https://api.github.com/users/ganik/repos","events_url":"https://api.github.com/users/ganik/events{/privacy}","received_events_url":"https://api.github.com/users/ganik/received_events","type":"User","site_admin":false},"body":"GetSummaryDataView() implementation for Pca and Linear Predictors.\r\nUnit tests are coming, this are just initial changes for review\r\nissue #167 ","created_at":"2018-05-18T00:35:31Z","updated_at":"2018-05-21T01:45:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"297c93b9d145a73e0a1e3b10a123eeaef3f72289","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/185/commits","review_comments_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/185/comments","review_comment_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/machinelearning/issues/185/comments","statuses_url":"https://api.github.com/repos/dotnet/machinelearning/statuses/9394cddc9b51208c0b46e82f47fd2def76d14fe8","head":{"label":"ganik:master","ref":"master","sha":"9394cddc9b51208c0b46e82f47fd2def76d14fe8","user":{"login":"ganik","id":18757686,"avatar_url":"https://avatars2.githubusercontent.com/u/18757686?v=4","gravatar_id":"","url":"https://api.github.com/users/ganik","html_url":"https://github.com/ganik","followers_url":"https://api.github.com/users/ganik/followers","following_url":"https://api.github.com/users/ganik/following{/other_user}","gists_url":"https://api.github.com/users/ganik/gists{/gist_id}","starred_url":"https://api.github.com/users/ganik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganik/subscriptions","organizations_url":"https://api.github.com/users/ganik/orgs","repos_url":"https://api.github.com/users/ganik/repos","events_url":"https://api.github.com/users/ganik/events{/privacy}","received_events_url":"https://api.github.com/users/ganik/received_events","type":"User","site_admin":false},"repo":{"id":132962883,"name":"machinelearning","full_name":"ganik/machinelearning","owner":{"login":"ganik","id":18757686,"avatar_url":"https://avatars2.githubusercontent.com/u/18757686?v=4","gravatar_id":"","url":"https://api.github.com/users/ganik","html_url":"https://github.com/ganik","followers_url":"https://api.github.com/users/ganik/followers","following_url":"https://api.github.com/users/ganik/following{/other_user}","gists_url":"https://api.github.com/users/ganik/gists{/gist_id}","starred_url":"https://api.github.com/users/ganik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganik/subscriptions","organizations_url":"https://api.github.com/users/ganik/orgs","repos_url":"https://api.github.com/users/ganik/repos","events_url":"https://api.github.com/users/ganik/events{/privacy}","received_events_url":"https://api.github.com/users/ganik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ganik/machinelearning","description":"ML.NET is an open source and cross-platform machine learning framework for .NET.","fork":true,"url":"https://api.github.com/repos/ganik/machinelearning","forks_url":"https://api.github.com/repos/ganik/machinelearning/forks","keys_url":"https://api.github.com/repos/ganik/machinelearning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ganik/machinelearning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ganik/machinelearning/teams","hooks_url":"https://api.github.com/repos/ganik/machinelearning/hooks","issue_events_url":"https://api.github.com/repos/ganik/machinelearning/issues/events{/number}","events_url":"https://api.github.com/repos/ganik/machinelearning/events","assignees_url":"https://api.github.com/repos/ganik/machinelearning/assignees{/user}","branches_url":"https://api.github.com/repos/ganik/machinelearning/branches{/branch}","tags_url":"https://api.github.com/repos/ganik/machinelearning/tags","blobs_url":"https://api.github.com/repos/ganik/machinelearning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ganik/machinelearning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ganik/machinelearning/git/refs{/sha}","trees_url":"https://api.github.com/repos/ganik/machinelearning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ganik/machinelearning/statuses/{sha}","languages_url":"https://api.github.com/repos/ganik/machinelearning/languages","stargazers_url":"https://api.github.com/repos/ganik/machinelearning/stargazers","contributors_url":"https://api.github.com/repos/ganik/machinelearning/contributors","subscribers_url":"https://api.github.com/repos/ganik/machinelearning/subscribers","subscription_url":"https://api.github.com/repos/ganik/machinelearning/subscription","commits_url":"https://api.github.com/repos/ganik/machinelearning/commits{/sha}","git_commits_url":"https://api.github.com/repos/ganik/machinelearning/git/commits{/sha}","comments_url":"https://api.github.com/repos/ganik/machinelearning/comments{/number}","issue_comment_url":"https://api.github.com/repos/ganik/machinelearning/issues/comments{/number}","contents_url":"https://api.github.com/repos/ganik/machinelearning/contents/{+path}","compare_url":"https://api.github.com/repos/ganik/machinelearning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ganik/machinelearning/merges","archive_url":"https://api.github.com/repos/ganik/machinelearning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ganik/machinelearning/downloads","issues_url":"https://api.github.com/repos/ganik/machinelearning/issues{/number}","pulls_url":"https://api.github.com/repos/ganik/machinelearning/pulls{/number}","milestones_url":"https://api.github.com/repos/ganik/machinelearning/milestones{/number}","notifications_url":"https://api.github.com/repos/ganik/machinelearning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ganik/machinelearning/labels{/name}","releases_url":"https://api.github.com/repos/ganik/machinelearning/releases{/id}","deployments_url":"https://api.github.com/repos/ganik/machinelearning/deployments","created_at":"2018-05-10T23:00:34Z","updated_at":"2018-05-18T04:14:03Z","pushed_at":"2018-05-18T04:14:01Z","git_url":"git://github.com/ganik/machinelearning.git","ssh_url":"git@github.com:ganik/machinelearning.git","clone_url":"https://github.com/ganik/machinelearning.git","svn_url":"https://github.com/ganik/machinelearning","homepage":"http://dot.net/ml","size":16803,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"720ecdc4d5e4540667901a549ac57079123639a3","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":132021166,"name":"machinelearning","full_name":"dotnet/machinelearning","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/machinelearning","description":"ML.NET is an open source and cross-platform machine learning framework for .NET.","fork":false,"url":"https://api.github.com/repos/dotnet/machinelearning","forks_url":"https://api.github.com/repos/dotnet/machinelearning/forks","keys_url":"https://api.github.com/repos/dotnet/machinelearning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/machinelearning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/machinelearning/teams","hooks_url":"https://api.github.com/repos/dotnet/machinelearning/hooks","issue_events_url":"https://api.github.com/repos/dotnet/machinelearning/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/machinelearning/events","assignees_url":"https://api.github.com/repos/dotnet/machinelearning/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/machinelearning/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/machinelearning/tags","blobs_url":"https://api.github.com/repos/dotnet/machinelearning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/machinelearning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/machinelearning/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/machinelearning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/machinelearning/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/machinelearning/languages","stargazers_url":"https://api.github.com/repos/dotnet/machinelearning/stargazers","contributors_url":"https://api.github.com/repos/dotnet/machinelearning/contributors","subscribers_url":"https://api.github.com/repos/dotnet/machinelearning/subscribers","subscription_url":"https://api.github.com/repos/dotnet/machinelearning/subscription","commits_url":"https://api.github.com/repos/dotnet/machinelearning/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/machinelearning/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/machinelearning/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/machinelearning/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/machinelearning/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/machinelearning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/machinelearning/merges","archive_url":"https://api.github.com/repos/dotnet/machinelearning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/machinelearning/downloads","issues_url":"https://api.github.com/repos/dotnet/machinelearning/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/machinelearning/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/machinelearning/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/machinelearning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/machinelearning/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/machinelearning/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/machinelearning/deployments","created_at":"2018-05-03T16:20:42Z","updated_at":"2018-05-21T01:45:41Z","pushed_at":"2018-05-19T17:21:01Z","git_url":"git://github.com/dotnet/machinelearning.git","ssh_url":"git@github.com:dotnet/machinelearning.git","clone_url":"https://github.com/dotnet/machinelearning.git","svn_url":"https://github.com/dotnet/machinelearning","homepage":"http://dot.net/ml","size":16938,"stargazers_count":2045,"watchers_count":2045,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":211,"mirror_url":null,"archived":false,"open_issues_count":93,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":211,"open_issues":93,"watchers":2045,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/185"},"html":{"href":"https://github.com/dotnet/machinelearning/pull/185"},"issue":{"href":"https://api.github.com/repos/dotnet/machinelearning/issues/185"},"comments":{"href":"https://api.github.com/repos/dotnet/machinelearning/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/machinelearning/statuses/9394cddc9b51208c0b46e82f47fd2def76d14fe8"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"TomFinley"}}