{"action":"created","comment":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/57504430","id":57504430,"diff_hunk":"@@ -0,0 +1,36 @@\n+CSVFile f_feats_train(\"../../data/regression_1d_sinc_features_train.dat\")\n+CSVFile f_feats_test(\"../../data/regression_1d_sinc_features_test.dat\")\n+CSVFile f_labels_train(\"../../data/regression_1d_sinc_labels_train.dat\")\n+CSVFile f_labels_test(\"../../data/regression_1d_sinc_labels_test.dat\")\n+\n+#![create_features]\n+RealFeatures features_train(f_feats_train)\n+RealFeatures features_test(f_feats_test)\n+RegressionLabels labels_train(f_labels_train)\n+RegressionLabels labels_test(f_labels_test)\n+#![create_features]\n+\n+#![create_appropriate_kernel_and_mean_function]\n+Real width = 1\n+GaussianKernel kernel(features_train, features_train, width)\n+ZeroMean mean_function()\n+#![create_appropriate_kernel_and_mean_function]\n+\n+#![create_instance]\n+GaussianLikelihood gauss_likelihood()\n+ExactInferenceMethod inference_method(kernel, features_train, mean_function, labels_train, gauss_likelihood)\n+GaussianProcessRegression gp_regression(inference_method)\n+#![create_instance]\n+\n+#![train_and_apply]\n+gp_regression.train()\n+RegressionLabels labels_predict = gp_regression.apply(features_test)\n+#![train_and_apply]\n+\n+#![evaluate_error]\n+MeanSquaredError eval()\n+Real mse = eval.evaluate(labels_predict, labels_test)\n+#![evaluate_error]\n+\n+# integration testing variables\n+RealVector output = labels_test.get_labels()","path":"examples/meta/src/gaussian_processes/gaussian_process_regression.sg","position":36,"original_position":36,"commit_id":"3ccc21d5c8d7ff302927009d5649c594d91d5a52","original_commit_id":"8a2635502c3e52fd01f9925944757a1589edb257","user":{"login":"ialong","id":5802525,"avatar_url":"https://avatars.githubusercontent.com/u/5802525?v=3","gravatar_id":"","url":"https://api.github.com/users/ialong","html_url":"https://github.com/ialong","followers_url":"https://api.github.com/users/ialong/followers","following_url":"https://api.github.com/users/ialong/following{/other_user}","gists_url":"https://api.github.com/users/ialong/gists{/gist_id}","starred_url":"https://api.github.com/users/ialong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ialong/subscriptions","organizations_url":"https://api.github.com/users/ialong/orgs","repos_url":"https://api.github.com/users/ialong/repos","events_url":"https://api.github.com/users/ialong/events{/privacy}","received_events_url":"https://api.github.com/users/ialong/received_events","type":"User","site_admin":false},"body":"sorry this might be a dumb question, but when you say ml2 do you mean marginal likelihood? Is the 2 to distinguish it from maximum likelihood?","created_at":"2016-03-26T00:12:17Z","updated_at":"2016-03-26T00:12:17Z","html_url":"https://github.com/shogun-toolbox/shogun/pull/3119#discussion_r57504430","pull_request_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119","_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/57504430"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3119#discussion_r57504430"},"pull_request":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119"}}},"pull_request":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119","id":64116514,"html_url":"https://github.com/shogun-toolbox/shogun/pull/3119","diff_url":"https://github.com/shogun-toolbox/shogun/pull/3119.diff","patch_url":"https://github.com/shogun-toolbox/shogun/pull/3119.patch","issue_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3119","number":3119,"state":"open","locked":false,"title":"GP exact regression cookbook","user":{"login":"ialong","id":5802525,"avatar_url":"https://avatars.githubusercontent.com/u/5802525?v=3","gravatar_id":"","url":"https://api.github.com/users/ialong","html_url":"https://github.com/ialong","followers_url":"https://api.github.com/users/ialong/followers","following_url":"https://api.github.com/users/ialong/following{/other_user}","gists_url":"https://api.github.com/users/ialong/gists{/gist_id}","starred_url":"https://api.github.com/users/ialong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ialong/subscriptions","organizations_url":"https://api.github.com/users/ialong/orgs","repos_url":"https://api.github.com/users/ialong/repos","events_url":"https://api.github.com/users/ialong/events{/privacy}","received_events_url":"https://api.github.com/users/ialong/received_events","type":"User","site_admin":false},"body":"I have added a basic GP regression cookbook, using CExactInferenceMethod. Might want to add model selection in there or leave that for another cookbook","created_at":"2016-03-25T00:04:30Z","updated_at":"2016-03-26T00:12:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bed956e2e243e40a1fb4e4574191dcd4c99b67a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119/commits","review_comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119/comments","review_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3119/comments","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/3ccc21d5c8d7ff302927009d5649c594d91d5a52","head":{"label":"ialong:gp_cookbook","ref":"gp_cookbook","sha":"3ccc21d5c8d7ff302927009d5649c594d91d5a52","user":{"login":"ialong","id":5802525,"avatar_url":"https://avatars.githubusercontent.com/u/5802525?v=3","gravatar_id":"","url":"https://api.github.com/users/ialong","html_url":"https://github.com/ialong","followers_url":"https://api.github.com/users/ialong/followers","following_url":"https://api.github.com/users/ialong/following{/other_user}","gists_url":"https://api.github.com/users/ialong/gists{/gist_id}","starred_url":"https://api.github.com/users/ialong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ialong/subscriptions","organizations_url":"https://api.github.com/users/ialong/orgs","repos_url":"https://api.github.com/users/ialong/repos","events_url":"https://api.github.com/users/ialong/events{/privacy}","received_events_url":"https://api.github.com/users/ialong/received_events","type":"User","site_admin":false},"repo":{"id":26014137,"name":"shogun","full_name":"ialong/shogun","owner":{"login":"ialong","id":5802525,"avatar_url":"https://avatars.githubusercontent.com/u/5802525?v=3","gravatar_id":"","url":"https://api.github.com/users/ialong","html_url":"https://github.com/ialong","followers_url":"https://api.github.com/users/ialong/followers","following_url":"https://api.github.com/users/ialong/following{/other_user}","gists_url":"https://api.github.com/users/ialong/gists{/gist_id}","starred_url":"https://api.github.com/users/ialong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ialong/subscriptions","organizations_url":"https://api.github.com/users/ialong/orgs","repos_url":"https://api.github.com/users/ialong/repos","events_url":"https://api.github.com/users/ialong/events{/privacy}","received_events_url":"https://api.github.com/users/ialong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ialong/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":true,"url":"https://api.github.com/repos/ialong/shogun","forks_url":"https://api.github.com/repos/ialong/shogun/forks","keys_url":"https://api.github.com/repos/ialong/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ialong/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ialong/shogun/teams","hooks_url":"https://api.github.com/repos/ialong/shogun/hooks","issue_events_url":"https://api.github.com/repos/ialong/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/ialong/shogun/events","assignees_url":"https://api.github.com/repos/ialong/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/ialong/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/ialong/shogun/tags","blobs_url":"https://api.github.com/repos/ialong/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ialong/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ialong/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/ialong/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ialong/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/ialong/shogun/languages","stargazers_url":"https://api.github.com/repos/ialong/shogun/stargazers","contributors_url":"https://api.github.com/repos/ialong/shogun/contributors","subscribers_url":"https://api.github.com/repos/ialong/shogun/subscribers","subscription_url":"https://api.github.com/repos/ialong/shogun/subscription","commits_url":"https://api.github.com/repos/ialong/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/ialong/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/ialong/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/ialong/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/ialong/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/ialong/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ialong/shogun/merges","archive_url":"https://api.github.com/repos/ialong/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ialong/shogun/downloads","issues_url":"https://api.github.com/repos/ialong/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/ialong/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/ialong/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/ialong/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ialong/shogun/labels{/name}","releases_url":"https://api.github.com/repos/ialong/shogun/releases{/id}","deployments_url":"https://api.github.com/repos/ialong/shogun/deployments","created_at":"2014-10-31T11:48:00Z","updated_at":"2016-03-17T19:53:29Z","pushed_at":"2016-03-25T18:14:33Z","git_url":"git://github.com/ialong/shogun.git","ssh_url":"git@github.com:ialong/shogun.git","clone_url":"https://github.com/ialong/shogun.git","svn_url":"https://github.com/ialong/shogun","homepage":"http://www.shogun-toolbox.org","size":59185,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"develop"}},"base":{"label":"shogun-toolbox:develop","ref":"develop","sha":"531f6c7cd376640c6f3236392ececc7a280755a1","user":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"repo":{"id":1555094,"name":"shogun","full_name":"shogun-toolbox/shogun","owner":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shogun-toolbox/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":false,"url":"https://api.github.com/repos/shogun-toolbox/shogun","forks_url":"https://api.github.com/repos/shogun-toolbox/shogun/forks","keys_url":"https://api.github.com/repos/shogun-toolbox/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shogun-toolbox/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shogun-toolbox/shogun/teams","hooks_url":"https://api.github.com/repos/shogun-toolbox/shogun/hooks","issue_events_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/shogun-toolbox/shogun/events","assignees_url":"https://api.github.com/repos/shogun-toolbox/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/shogun-toolbox/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/tags","blobs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/shogun-toolbox/shogun/languages","stargazers_url":"https://api.github.com/repos/shogun-toolbox/shogun/stargazers","contributors_url":"https://api.github.com/repos/shogun-toolbox/shogun/contributors","subscribers_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscribers","subscription_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscription","commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/shogun-toolbox/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/shogun-toolbox/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shogun-toolbox/shogun/merges","archive_url":"https://api.github.com/repos/shogun-toolbox/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shogun-toolbox/shogun/downloads","issues_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/shogun-toolbox/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/shogun-toolbox/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shogun-toolbox/shogun/labels{/name}","releases_url":"https://api.github.com/repos/shogun-toolbox/shogun/releases{/id}","deployments_url":"https://api.github.com/repos/shogun-toolbox/shogun/deployments","created_at":"2011-04-01T10:44:32Z","updated_at":"2016-03-24T12:14:06Z","pushed_at":"2016-03-25T18:56:41Z","git_url":"git://github.com/shogun-toolbox/shogun.git","ssh_url":"git@github.com:shogun-toolbox/shogun.git","clone_url":"https://github.com/shogun-toolbox/shogun.git","svn_url":"https://github.com/shogun-toolbox/shogun","homepage":"http://www.shogun-toolbox.org","size":180842,"stargazers_count":1012,"watchers_count":1012,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":550,"mirror_url":null,"open_issues_count":410,"forks":550,"open_issues":410,"watchers":1012,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3119"},"issue":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3119"},"comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3119/comments"},"review_comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119/comments"},"review_comment":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3119/commits"},"statuses":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/3ccc21d5c8d7ff302927009d5649c594d91d5a52"}}}}