{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments/267029054","pull_request_review_id":216333190,"id":267029054,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2NzAyOTA1NA==","diff_hunk":"@@ -0,0 +1,95 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Linq;\n+using Microsoft.ML.Data;\n+\n+namespace Microsoft.ML.Samples.Dynamic.Trainers.Regression\n+{\n+    public static class FastForest\n+    {\n+        // This example requires installation of additional NuGet package\n+        // <a href=\"https://www.nuget.org/packages/Microsoft.ML.FastTree/\">Microsoft.ML.FastTree</a>.\n+        public static void Example()\n+        {\n+            // Create a new context for ML.NET operations. It can be used for exception tracking and logging, \n+            // as a catalog of available operations and as the source of randomness.\n+            // Setting the seed to a fixed number in this example to make outputs deterministic.\n+            var mlContext = new MLContext(seed: 0);\n+\n+            // Create a list of training examples.\n+            var examples = GenerateRandomDataPoints(1000);\n+\n+            // Convert the examples list to an IDataView object, which is consumable by ML.NET API.\n+            var trainingData = mlContext.Data.LoadFromEnumerable(examples);\n+\n+            // Define the trainer.\n+            var pipeline = mlContext.Regression.Trainers.FastForest();\n+\n+            // Train the model.\n+            var model = pipeline.Fit(trainingData);\n+\n+            // Create testing examples. Use different random seed to make it different from training data.\n+            var testData = mlContext.Data.LoadFromEnumerable(GenerateRandomDataPoints(500, seed:123));","path":"docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastForest.cs","position":32,"original_position":32,"commit_id":"c1b668ab295f4cf422284102abfa45a28f734b4a","original_commit_id":"1020b9290a8fe51975a2e1025018fa033465e3d9","user":{"login":"zeahmed","id":38438266,"node_id":"MDQ6VXNlcjM4NDM4MjY2","avatar_url":"https://avatars3.githubusercontent.com/u/38438266?v=4","gravatar_id":"","url":"https://api.github.com/users/zeahmed","html_url":"https://github.com/zeahmed","followers_url":"https://api.github.com/users/zeahmed/followers","following_url":"https://api.github.com/users/zeahmed/following{/other_user}","gists_url":"https://api.github.com/users/zeahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/zeahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeahmed/subscriptions","organizations_url":"https://api.github.com/users/zeahmed/orgs","repos_url":"https://api.github.com/users/zeahmed/repos","events_url":"https://api.github.com/users/zeahmed/events{/privacy}","received_events_url":"https://api.github.com/users/zeahmed/received_events","type":"User","site_admin":false},"body":"nit: Can we be explicit to show the `seed:0` in the training case as well. Also, can `seed:123` be changed to `seed:1`? \r\n\r\n---\r\nIn reply to: [267018416](https://github.com/dotnet/machinelearning/pull/2999#discussion_r267018416) [](ancestors = 267018416,266723117)","created_at":"2019-03-19T18:08:04Z","updated_at":"2019-03-19T18:08:04Z","html_url":"https://github.com/dotnet/machinelearning/pull/2999#discussion_r267029054","pull_request_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments/267029054"},"html":{"href":"https://github.com/dotnet/machinelearning/pull/2999#discussion_r267029054"},"pull_request":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999"}},"in_reply_to_id":266723117},"pull_request":{"url":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999","id":262235593,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYyMjM1NTkz","html_url":"https://github.com/dotnet/machinelearning/pull/2999","diff_url":"https://github.com/dotnet/machinelearning/pull/2999.diff","patch_url":"https://github.com/dotnet/machinelearning/pull/2999.patch","issue_url":"https://api.github.com/repos/dotnet/machinelearning/issues/2999","number":2999,"state":"open","locked":false,"title":"Added samples for tree regression trainers.","user":{"login":"shmoradims","id":15950225,"node_id":"MDQ6VXNlcjE1OTUwMjI1","avatar_url":"https://avatars2.githubusercontent.com/u/15950225?v=4","gravatar_id":"","url":"https://api.github.com/users/shmoradims","html_url":"https://github.com/shmoradims","followers_url":"https://api.github.com/users/shmoradims/followers","following_url":"https://api.github.com/users/shmoradims/following{/other_user}","gists_url":"https://api.github.com/users/shmoradims/gists{/gist_id}","starred_url":"https://api.github.com/users/shmoradims/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmoradims/subscriptions","organizations_url":"https://api.github.com/users/shmoradims/orgs","repos_url":"https://api.github.com/users/shmoradims/repos","events_url":"https://api.github.com/users/shmoradims/events{/privacy}","received_events_url":"https://api.github.com/users/shmoradims/received_events","type":"User","site_admin":false},"body":"Related to #2522.\r\n\r\nSamples for tree regression trainers: GAM, FastTree, FastForest, FastTreeTweedie.","created_at":"2019-03-18T21:35:16Z","updated_at":"2019-03-19T18:08:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfe5f379bd0f48c183840b9caa0c4fd228cb353c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rogancarr","id":19598317,"node_id":"MDQ6VXNlcjE5NTk4MzE3","avatar_url":"https://avatars0.githubusercontent.com/u/19598317?v=4","gravatar_id":"","url":"https://api.github.com/users/rogancarr","html_url":"https://github.com/rogancarr","followers_url":"https://api.github.com/users/rogancarr/followers","following_url":"https://api.github.com/users/rogancarr/following{/other_user}","gists_url":"https://api.github.com/users/rogancarr/gists{/gist_id}","starred_url":"https://api.github.com/users/rogancarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogancarr/subscriptions","organizations_url":"https://api.github.com/users/rogancarr/orgs","repos_url":"https://api.github.com/users/rogancarr/repos","events_url":"https://api.github.com/users/rogancarr/events{/privacy}","received_events_url":"https://api.github.com/users/rogancarr/received_events","type":"User","site_admin":false},{"login":"zeahmed","id":38438266,"node_id":"MDQ6VXNlcjM4NDM4MjY2","avatar_url":"https://avatars3.githubusercontent.com/u/38438266?v=4","gravatar_id":"","url":"https://api.github.com/users/zeahmed","html_url":"https://github.com/zeahmed","followers_url":"https://api.github.com/users/zeahmed/followers","following_url":"https://api.github.com/users/zeahmed/following{/other_user}","gists_url":"https://api.github.com/users/zeahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/zeahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeahmed/subscriptions","organizations_url":"https://api.github.com/users/zeahmed/orgs","repos_url":"https://api.github.com/users/zeahmed/repos","events_url":"https://api.github.com/users/zeahmed/events{/privacy}","received_events_url":"https://api.github.com/users/zeahmed/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999/commits","review_comments_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999/comments","review_comment_url":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/machinelearning/issues/2999/comments","statuses_url":"https://api.github.com/repos/dotnet/machinelearning/statuses/c1b668ab295f4cf422284102abfa45a28f734b4a","head":{"label":"shmoradims:tree_regression_samples","ref":"tree_regression_samples","sha":"c1b668ab295f4cf422284102abfa45a28f734b4a","user":{"login":"shmoradims","id":15950225,"node_id":"MDQ6VXNlcjE1OTUwMjI1","avatar_url":"https://avatars2.githubusercontent.com/u/15950225?v=4","gravatar_id":"","url":"https://api.github.com/users/shmoradims","html_url":"https://github.com/shmoradims","followers_url":"https://api.github.com/users/shmoradims/followers","following_url":"https://api.github.com/users/shmoradims/following{/other_user}","gists_url":"https://api.github.com/users/shmoradims/gists{/gist_id}","starred_url":"https://api.github.com/users/shmoradims/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmoradims/subscriptions","organizations_url":"https://api.github.com/users/shmoradims/orgs","repos_url":"https://api.github.com/users/shmoradims/repos","events_url":"https://api.github.com/users/shmoradims/events{/privacy}","received_events_url":"https://api.github.com/users/shmoradims/received_events","type":"User","site_admin":false},"repo":{"id":144628303,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ2MjgzMDM=","name":"machinelearning","full_name":"shmoradims/machinelearning","private":false,"owner":{"login":"shmoradims","id":15950225,"node_id":"MDQ6VXNlcjE1OTUwMjI1","avatar_url":"https://avatars2.githubusercontent.com/u/15950225?v=4","gravatar_id":"","url":"https://api.github.com/users/shmoradims","html_url":"https://github.com/shmoradims","followers_url":"https://api.github.com/users/shmoradims/followers","following_url":"https://api.github.com/users/shmoradims/following{/other_user}","gists_url":"https://api.github.com/users/shmoradims/gists{/gist_id}","starred_url":"https://api.github.com/users/shmoradims/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmoradims/subscriptions","organizations_url":"https://api.github.com/users/shmoradims/orgs","repos_url":"https://api.github.com/users/shmoradims/repos","events_url":"https://api.github.com/users/shmoradims/events{/privacy}","received_events_url":"https://api.github.com/users/shmoradims/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shmoradims/machinelearning","description":"ML.NET is an open source and cross-platform machine learning framework for .NET.","fork":true,"url":"https://api.github.com/repos/shmoradims/machinelearning","forks_url":"https://api.github.com/repos/shmoradims/machinelearning/forks","keys_url":"https://api.github.com/repos/shmoradims/machinelearning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shmoradims/machinelearning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shmoradims/machinelearning/teams","hooks_url":"https://api.github.com/repos/shmoradims/machinelearning/hooks","issue_events_url":"https://api.github.com/repos/shmoradims/machinelearning/issues/events{/number}","events_url":"https://api.github.com/repos/shmoradims/machinelearning/events","assignees_url":"https://api.github.com/repos/shmoradims/machinelearning/assignees{/user}","branches_url":"https://api.github.com/repos/shmoradims/machinelearning/branches{/branch}","tags_url":"https://api.github.com/repos/shmoradims/machinelearning/tags","blobs_url":"https://api.github.com/repos/shmoradims/machinelearning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shmoradims/machinelearning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shmoradims/machinelearning/git/refs{/sha}","trees_url":"https://api.github.com/repos/shmoradims/machinelearning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shmoradims/machinelearning/statuses/{sha}","languages_url":"https://api.github.com/repos/shmoradims/machinelearning/languages","stargazers_url":"https://api.github.com/repos/shmoradims/machinelearning/stargazers","contributors_url":"https://api.github.com/repos/shmoradims/machinelearning/contributors","subscribers_url":"https://api.github.com/repos/shmoradims/machinelearning/subscribers","subscription_url":"https://api.github.com/repos/shmoradims/machinelearning/subscription","commits_url":"https://api.github.com/repos/shmoradims/machinelearning/commits{/sha}","git_commits_url":"https://api.github.com/repos/shmoradims/machinelearning/git/commits{/sha}","comments_url":"https://api.github.com/repos/shmoradims/machinelearning/comments{/number}","issue_comment_url":"https://api.github.com/repos/shmoradims/machinelearning/issues/comments{/number}","contents_url":"https://api.github.com/repos/shmoradims/machinelearning/contents/{+path}","compare_url":"https://api.github.com/repos/shmoradims/machinelearning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shmoradims/machinelearning/merges","archive_url":"https://api.github.com/repos/shmoradims/machinelearning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shmoradims/machinelearning/downloads","issues_url":"https://api.github.com/repos/shmoradims/machinelearning/issues{/number}","pulls_url":"https://api.github.com/repos/shmoradims/machinelearning/pulls{/number}","milestones_url":"https://api.github.com/repos/shmoradims/machinelearning/milestones{/number}","notifications_url":"https://api.github.com/repos/shmoradims/machinelearning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shmoradims/machinelearning/labels{/name}","releases_url":"https://api.github.com/repos/shmoradims/machinelearning/releases{/id}","deployments_url":"https://api.github.com/repos/shmoradims/machinelearning/deployments","created_at":"2018-08-13T20:07:17Z","updated_at":"2018-09-18T21:40:59Z","pushed_at":"2019-03-19T17:57:16Z","git_url":"git://github.com/shmoradims/machinelearning.git","ssh_url":"git@github.com:shmoradims/machinelearning.git","clone_url":"https://github.com/shmoradims/machinelearning.git","svn_url":"https://github.com/shmoradims/machinelearning","homepage":"https://dot.net/ml","size":41211,"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","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"3ad489ef778902e82b9972bea8a7557198b8a491","user":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMjExNjY=","name":"machinelearning","full_name":"dotnet/machinelearning","private":false,"owner":{"login":"dotnet","id":9141961,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNDE5NjE=","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},"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":"2019-03-19T18:00:05Z","pushed_at":"2019-03-19T17:58:14Z","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":"https://dot.net/ml","size":41371,"stargazers_count":5376,"watchers_count":5376,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1115,"mirror_url":null,"archived":false,"open_issues_count":500,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1115,"open_issues":500,"watchers":5376,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999"},"html":{"href":"https://github.com/dotnet/machinelearning/pull/2999"},"issue":{"href":"https://api.github.com/repos/dotnet/machinelearning/issues/2999"},"comments":{"href":"https://api.github.com/repos/dotnet/machinelearning/issues/2999/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/machinelearning/pulls/2999/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/machinelearning/statuses/c1b668ab295f4cf422284102abfa45a28f734b4a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zeahmed"}}