{"action":"created","comment":{"url":"https://api.github.com/repos/airbnb/aerosolve/pulls/comments/72305524","id":72305524,"diff_hunk":"@@ -0,0 +1,25 @@\n+package com.airbnb.aerosolve.training.pipeline\n+\n+import java.io.{BufferedWriter, OutputStreamWriter}\n+import java.net.URI\n+\n+import org.apache.hadoop.conf.Configuration\n+import org.apache.hadoop.fs.FileSystem\n+\n+/*\n+ * Writes to result file\n+ */\n+object ResultUtil {\n+  def writeResults(metrics: Array[(String, Double)], resultOutputPath: String) = {\n+    val fileSystem = FileSystem.get(new java.net.URI(result), new Configuration())","path":"training/src/main/scala/com/airbnb/aerosolve/training/pipeline/ResultUtil.scala","position":14,"original_position":14,"commit_id":"b726a0f981a0c7e92e7ef20ecfccd79f2dc7486d","original_commit_id":"b726a0f981a0c7e92e7ef20ecfccd79f2dc7486d","user":{"login":"abaek","id":5884612,"avatar_url":"https://avatars.githubusercontent.com/u/5884612?v=3","gravatar_id":"","url":"https://api.github.com/users/abaek","html_url":"https://github.com/abaek","followers_url":"https://api.github.com/users/abaek/followers","following_url":"https://api.github.com/users/abaek/following{/other_user}","gists_url":"https://api.github.com/users/abaek/gists{/gist_id}","starred_url":"https://api.github.com/users/abaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abaek/subscriptions","organizations_url":"https://api.github.com/users/abaek/orgs","repos_url":"https://api.github.com/users/abaek/repos","events_url":"https://api.github.com/users/abaek/events{/privacy}","received_events_url":"https://api.github.com/users/abaek/received_events","type":"User","site_admin":false},"body":"`PipelineUtil.saveAndCommitAsTextFile` didn't have exactly what i needed, but I used `PipelineUtil.writeStringToFile`","created_at":"2016-07-26T18:10:59Z","updated_at":"2016-07-26T18:10:59Z","html_url":"https://github.com/airbnb/aerosolve/pull/231#discussion_r72305524","pull_request_url":"https://api.github.com/repos/airbnb/aerosolve/pulls/231","_links":{"self":{"href":"https://api.github.com/repos/airbnb/aerosolve/pulls/comments/72305524"},"html":{"href":"https://github.com/airbnb/aerosolve/pull/231#discussion_r72305524"},"pull_request":{"href":"https://api.github.com/repos/airbnb/aerosolve/pulls/231"}}},"pull_request":{"url":"https://api.github.com/repos/airbnb/aerosolve/pulls/231","id":78549674,"html_url":"https://github.com/airbnb/aerosolve/pull/231","diff_url":"https://github.com/airbnb/aerosolve/pull/231.diff","patch_url":"https://github.com/airbnb/aerosolve/pull/231.patch","issue_url":"https://api.github.com/repos/airbnb/aerosolve/issues/231","number":231,"state":"open","locked":false,"title":"Write metrics to result file during eval","user":{"login":"abaek","id":5884612,"avatar_url":"https://avatars.githubusercontent.com/u/5884612?v=3","gravatar_id":"","url":"https://api.github.com/users/abaek","html_url":"https://github.com/abaek","followers_url":"https://api.github.com/users/abaek/followers","following_url":"https://api.github.com/users/abaek/following{/other_user}","gists_url":"https://api.github.com/users/abaek/gists{/gist_id}","starred_url":"https://api.github.com/users/abaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abaek/subscriptions","organizations_url":"https://api.github.com/users/abaek/orgs","repos_url":"https://api.github.com/users/abaek/repos","events_url":"https://api.github.com/users/abaek/events{/privacy}","received_events_url":"https://api.github.com/users/abaek/received_events","type":"User","site_admin":false},"body":"If a user specifies a `result` parameter in the eval part of their config, then it will write all metrics to that file.\r\n\r\nTo: @jq @yinlou ","created_at":"2016-07-22T22:36:03Z","updated_at":"2016-07-26T18:10:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df28c2fc72e3c2b034945cd25bae23efafe10305","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/airbnb/aerosolve/pulls/231/commits","review_comments_url":"https://api.github.com/repos/airbnb/aerosolve/pulls/231/comments","review_comment_url":"https://api.github.com/repos/airbnb/aerosolve/pulls/comments{/number}","comments_url":"https://api.github.com/repos/airbnb/aerosolve/issues/231/comments","statuses_url":"https://api.github.com/repos/airbnb/aerosolve/statuses/b726a0f981a0c7e92e7ef20ecfccd79f2dc7486d","head":{"label":"airbnb:abaek/result-output-for-eval","ref":"abaek/result-output-for-eval","sha":"b726a0f981a0c7e92e7ef20ecfccd79f2dc7486d","user":{"login":"airbnb","id":698437,"avatar_url":"https://avatars.githubusercontent.com/u/698437?v=3","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"repo":{"id":35507603,"name":"aerosolve","full_name":"airbnb/aerosolve","owner":{"login":"airbnb","id":698437,"avatar_url":"https://avatars.githubusercontent.com/u/698437?v=3","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbnb/aerosolve","description":"A machine learning package built for humans.","fork":false,"url":"https://api.github.com/repos/airbnb/aerosolve","forks_url":"https://api.github.com/repos/airbnb/aerosolve/forks","keys_url":"https://api.github.com/repos/airbnb/aerosolve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbnb/aerosolve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbnb/aerosolve/teams","hooks_url":"https://api.github.com/repos/airbnb/aerosolve/hooks","issue_events_url":"https://api.github.com/repos/airbnb/aerosolve/issues/events{/number}","events_url":"https://api.github.com/repos/airbnb/aerosolve/events","assignees_url":"https://api.github.com/repos/airbnb/aerosolve/assignees{/user}","branches_url":"https://api.github.com/repos/airbnb/aerosolve/branches{/branch}","tags_url":"https://api.github.com/repos/airbnb/aerosolve/tags","blobs_url":"https://api.github.com/repos/airbnb/aerosolve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbnb/aerosolve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbnb/aerosolve/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbnb/aerosolve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbnb/aerosolve/statuses/{sha}","languages_url":"https://api.github.com/repos/airbnb/aerosolve/languages","stargazers_url":"https://api.github.com/repos/airbnb/aerosolve/stargazers","contributors_url":"https://api.github.com/repos/airbnb/aerosolve/contributors","subscribers_url":"https://api.github.com/repos/airbnb/aerosolve/subscribers","subscription_url":"https://api.github.com/repos/airbnb/aerosolve/subscription","commits_url":"https://api.github.com/repos/airbnb/aerosolve/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbnb/aerosolve/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbnb/aerosolve/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbnb/aerosolve/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbnb/aerosolve/contents/{+path}","compare_url":"https://api.github.com/repos/airbnb/aerosolve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbnb/aerosolve/merges","archive_url":"https://api.github.com/repos/airbnb/aerosolve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbnb/aerosolve/downloads","issues_url":"https://api.github.com/repos/airbnb/aerosolve/issues{/number}","pulls_url":"https://api.github.com/repos/airbnb/aerosolve/pulls{/number}","milestones_url":"https://api.github.com/repos/airbnb/aerosolve/milestones{/number}","notifications_url":"https://api.github.com/repos/airbnb/aerosolve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbnb/aerosolve/labels{/name}","releases_url":"https://api.github.com/repos/airbnb/aerosolve/releases{/id}","deployments_url":"https://api.github.com/repos/airbnb/aerosolve/deployments","created_at":"2015-05-12T19:11:57Z","updated_at":"2016-07-26T02:40:29Z","pushed_at":"2016-07-22T23:52:26Z","git_url":"git://github.com/airbnb/aerosolve.git","ssh_url":"git@github.com:airbnb/aerosolve.git","clone_url":"https://github.com/airbnb/aerosolve.git","svn_url":"https://github.com/airbnb/aerosolve","homepage":"http://airbnb.github.io/aerosolve/","size":5673,"stargazers_count":3276,"watchers_count":3276,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":385,"mirror_url":null,"open_issues_count":2,"forks":385,"open_issues":2,"watchers":3276,"default_branch":"master"}},"base":{"label":"airbnb:master","ref":"master","sha":"c70d7653290c8a0d9c3e21077450d74305288467","user":{"login":"airbnb","id":698437,"avatar_url":"https://avatars.githubusercontent.com/u/698437?v=3","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"repo":{"id":35507603,"name":"aerosolve","full_name":"airbnb/aerosolve","owner":{"login":"airbnb","id":698437,"avatar_url":"https://avatars.githubusercontent.com/u/698437?v=3","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbnb/aerosolve","description":"A machine learning package built for humans.","fork":false,"url":"https://api.github.com/repos/airbnb/aerosolve","forks_url":"https://api.github.com/repos/airbnb/aerosolve/forks","keys_url":"https://api.github.com/repos/airbnb/aerosolve/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbnb/aerosolve/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbnb/aerosolve/teams","hooks_url":"https://api.github.com/repos/airbnb/aerosolve/hooks","issue_events_url":"https://api.github.com/repos/airbnb/aerosolve/issues/events{/number}","events_url":"https://api.github.com/repos/airbnb/aerosolve/events","assignees_url":"https://api.github.com/repos/airbnb/aerosolve/assignees{/user}","branches_url":"https://api.github.com/repos/airbnb/aerosolve/branches{/branch}","tags_url":"https://api.github.com/repos/airbnb/aerosolve/tags","blobs_url":"https://api.github.com/repos/airbnb/aerosolve/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbnb/aerosolve/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbnb/aerosolve/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbnb/aerosolve/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbnb/aerosolve/statuses/{sha}","languages_url":"https://api.github.com/repos/airbnb/aerosolve/languages","stargazers_url":"https://api.github.com/repos/airbnb/aerosolve/stargazers","contributors_url":"https://api.github.com/repos/airbnb/aerosolve/contributors","subscribers_url":"https://api.github.com/repos/airbnb/aerosolve/subscribers","subscription_url":"https://api.github.com/repos/airbnb/aerosolve/subscription","commits_url":"https://api.github.com/repos/airbnb/aerosolve/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbnb/aerosolve/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbnb/aerosolve/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbnb/aerosolve/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbnb/aerosolve/contents/{+path}","compare_url":"https://api.github.com/repos/airbnb/aerosolve/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbnb/aerosolve/merges","archive_url":"https://api.github.com/repos/airbnb/aerosolve/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbnb/aerosolve/downloads","issues_url":"https://api.github.com/repos/airbnb/aerosolve/issues{/number}","pulls_url":"https://api.github.com/repos/airbnb/aerosolve/pulls{/number}","milestones_url":"https://api.github.com/repos/airbnb/aerosolve/milestones{/number}","notifications_url":"https://api.github.com/repos/airbnb/aerosolve/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbnb/aerosolve/labels{/name}","releases_url":"https://api.github.com/repos/airbnb/aerosolve/releases{/id}","deployments_url":"https://api.github.com/repos/airbnb/aerosolve/deployments","created_at":"2015-05-12T19:11:57Z","updated_at":"2016-07-26T02:40:29Z","pushed_at":"2016-07-22T23:52:26Z","git_url":"git://github.com/airbnb/aerosolve.git","ssh_url":"git@github.com:airbnb/aerosolve.git","clone_url":"https://github.com/airbnb/aerosolve.git","svn_url":"https://github.com/airbnb/aerosolve","homepage":"http://airbnb.github.io/aerosolve/","size":5673,"stargazers_count":3276,"watchers_count":3276,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":385,"mirror_url":null,"open_issues_count":2,"forks":385,"open_issues":2,"watchers":3276,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airbnb/aerosolve/pulls/231"},"html":{"href":"https://github.com/airbnb/aerosolve/pull/231"},"issue":{"href":"https://api.github.com/repos/airbnb/aerosolve/issues/231"},"comments":{"href":"https://api.github.com/repos/airbnb/aerosolve/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/airbnb/aerosolve/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/airbnb/aerosolve/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/airbnb/aerosolve/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/airbnb/aerosolve/statuses/b726a0f981a0c7e92e7ef20ecfccd79f2dc7486d"}}}}
{"actor":{"display_login":"abaek"}}