{"action":"created","comment":{"url":"https://api.github.com/repos/aws/sagemaker-containers/pulls/comments/186198380","pull_request_review_id":117740500,"id":186198380,"diff_hunk":"@@ -0,0 +1,41 @@\n+# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the 'License'). You\n+# may not use this file except in compliance with the License. A copy of\n+# the License is located at\n+#\n+#     http://aws.amazon.com/apache2.0/\n+#\n+# or in the 'license' file accompanying this file. This file is\n+# distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF\n+# ANY KIND, either express or implied. See the License for the specific\n+# language governing permissions and limitations under the License.\n+from mock import Mock, patch, PropertyMock\n+\n+from sagemaker_containers import env, trainer\n+\n+\n+HYPERPARAMS = {\n+    'x': 1,\n+    'sagemaker_region': 'us-west-2',\n+    'sagemaker_job_name': 'sagemaker-training-job',\n+    'sagemaker_program': 'main.py',\n+    'sagemaker_submit_directory': 'imagenet',\n+    'sagemaker_enable_cloudwatch_metrics': True\n+}\n+\n+\n+@patch('importlib.import_module')\n+@patch('sagemaker_containers.env.read_hyperparameters', lambda: HYPERPARAMS)\n+@patch('sagemaker_containers.env.read_input_data_config', lambda: {'input': 'yes'})","path":"test/unit/test_trainer.py","position":30,"original_position":30,"commit_id":"561a0801477481991778eb08b161ac65cf2db55b","original_commit_id":"561a0801477481991778eb08b161ac65cf2db55b","user":{"login":"mvsusp","id":142074,"avatar_url":"https://avatars0.githubusercontent.com/u/142074?v=4","gravatar_id":"","url":"https://api.github.com/users/mvsusp","html_url":"https://github.com/mvsusp","followers_url":"https://api.github.com/users/mvsusp/followers","following_url":"https://api.github.com/users/mvsusp/following{/other_user}","gists_url":"https://api.github.com/users/mvsusp/gists{/gist_id}","starred_url":"https://api.github.com/users/mvsusp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvsusp/subscriptions","organizations_url":"https://api.github.com/users/mvsusp/orgs","repos_url":"https://api.github.com/users/mvsusp/repos","events_url":"https://api.github.com/users/mvsusp/events{/privacy}","received_events_url":"https://api.github.com/users/mvsusp/received_events","type":"User","site_admin":false},"body":"same here","created_at":"2018-05-04T19:52:43Z","updated_at":"2018-05-04T19:53:36Z","html_url":"https://github.com/aws/sagemaker-containers/pull/47#discussion_r186198380","pull_request_url":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/aws/sagemaker-containers/pulls/comments/186198380"},"html":{"href":"https://github.com/aws/sagemaker-containers/pull/47#discussion_r186198380"},"pull_request":{"href":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47"}},"in_reply_to_id":186198322},"pull_request":{"url":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47","id":186063029,"html_url":"https://github.com/aws/sagemaker-containers/pull/47","diff_url":"https://github.com/aws/sagemaker-containers/pull/47.diff","patch_url":"https://github.com/aws/sagemaker-containers/pull/47.patch","issue_url":"https://api.github.com/repos/aws/sagemaker-containers/issues/47","number":47,"state":"open","locked":false,"title":"Add train cli.","user":{"login":"iquintero","id":1126247,"avatar_url":"https://avatars3.githubusercontent.com/u/1126247?v=4","gravatar_id":"","url":"https://api.github.com/users/iquintero","html_url":"https://github.com/iquintero","followers_url":"https://api.github.com/users/iquintero/followers","following_url":"https://api.github.com/users/iquintero/following{/other_user}","gists_url":"https://api.github.com/users/iquintero/gists{/gist_id}","starred_url":"https://api.github.com/users/iquintero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iquintero/subscriptions","organizations_url":"https://api.github.com/users/iquintero/orgs","repos_url":"https://api.github.com/users/iquintero/repos","events_url":"https://api.github.com/users/iquintero/events{/privacy}","received_events_url":"https://api.github.com/users/iquintero/received_events","type":"User","site_admin":false},"body":"train is the main entry point for training containers. The\r\nframework_module should be set in the TrainingEnvironment and that is\r\nall that is required to get started.\r\n\r\n*Issue #, if available:*\r\n\r\n*Description of changes:*\r\n\r\n\r\nBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.\r\n","created_at":"2018-05-04T18:14:45Z","updated_at":"2018-05-04T19:53:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3c59718da8f277ef4eac20ff8d60c77e7064d91","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47/commits","review_comments_url":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47/comments","review_comment_url":"https://api.github.com/repos/aws/sagemaker-containers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/sagemaker-containers/issues/47/comments","statuses_url":"https://api.github.com/repos/aws/sagemaker-containers/statuses/561a0801477481991778eb08b161ac65cf2db55b","head":{"label":"iquintero:train_cli","ref":"train_cli","sha":"561a0801477481991778eb08b161ac65cf2db55b","user":{"login":"iquintero","id":1126247,"avatar_url":"https://avatars3.githubusercontent.com/u/1126247?v=4","gravatar_id":"","url":"https://api.github.com/users/iquintero","html_url":"https://github.com/iquintero","followers_url":"https://api.github.com/users/iquintero/followers","following_url":"https://api.github.com/users/iquintero/following{/other_user}","gists_url":"https://api.github.com/users/iquintero/gists{/gist_id}","starred_url":"https://api.github.com/users/iquintero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iquintero/subscriptions","organizations_url":"https://api.github.com/users/iquintero/orgs","repos_url":"https://api.github.com/users/iquintero/repos","events_url":"https://api.github.com/users/iquintero/events{/privacy}","received_events_url":"https://api.github.com/users/iquintero/received_events","type":"User","site_admin":false},"repo":{"id":130267045,"name":"sagemaker-containers","full_name":"iquintero/sagemaker-containers","owner":{"login":"iquintero","id":1126247,"avatar_url":"https://avatars3.githubusercontent.com/u/1126247?v=4","gravatar_id":"","url":"https://api.github.com/users/iquintero","html_url":"https://github.com/iquintero","followers_url":"https://api.github.com/users/iquintero/followers","following_url":"https://api.github.com/users/iquintero/following{/other_user}","gists_url":"https://api.github.com/users/iquintero/gists{/gist_id}","starred_url":"https://api.github.com/users/iquintero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iquintero/subscriptions","organizations_url":"https://api.github.com/users/iquintero/orgs","repos_url":"https://api.github.com/users/iquintero/repos","events_url":"https://api.github.com/users/iquintero/events{/privacy}","received_events_url":"https://api.github.com/users/iquintero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iquintero/sagemaker-containers","description":"This support code is used for making machine learning frameworks (e.g. MXNet, TensorFlow) run on Amazon SageMaker. ","fork":true,"url":"https://api.github.com/repos/iquintero/sagemaker-containers","forks_url":"https://api.github.com/repos/iquintero/sagemaker-containers/forks","keys_url":"https://api.github.com/repos/iquintero/sagemaker-containers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iquintero/sagemaker-containers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iquintero/sagemaker-containers/teams","hooks_url":"https://api.github.com/repos/iquintero/sagemaker-containers/hooks","issue_events_url":"https://api.github.com/repos/iquintero/sagemaker-containers/issues/events{/number}","events_url":"https://api.github.com/repos/iquintero/sagemaker-containers/events","assignees_url":"https://api.github.com/repos/iquintero/sagemaker-containers/assignees{/user}","branches_url":"https://api.github.com/repos/iquintero/sagemaker-containers/branches{/branch}","tags_url":"https://api.github.com/repos/iquintero/sagemaker-containers/tags","blobs_url":"https://api.github.com/repos/iquintero/sagemaker-containers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iquintero/sagemaker-containers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iquintero/sagemaker-containers/git/refs{/sha}","trees_url":"https://api.github.com/repos/iquintero/sagemaker-containers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iquintero/sagemaker-containers/statuses/{sha}","languages_url":"https://api.github.com/repos/iquintero/sagemaker-containers/languages","stargazers_url":"https://api.github.com/repos/iquintero/sagemaker-containers/stargazers","contributors_url":"https://api.github.com/repos/iquintero/sagemaker-containers/contributors","subscribers_url":"https://api.github.com/repos/iquintero/sagemaker-containers/subscribers","subscription_url":"https://api.github.com/repos/iquintero/sagemaker-containers/subscription","commits_url":"https://api.github.com/repos/iquintero/sagemaker-containers/commits{/sha}","git_commits_url":"https://api.github.com/repos/iquintero/sagemaker-containers/git/commits{/sha}","comments_url":"https://api.github.com/repos/iquintero/sagemaker-containers/comments{/number}","issue_comment_url":"https://api.github.com/repos/iquintero/sagemaker-containers/issues/comments{/number}","contents_url":"https://api.github.com/repos/iquintero/sagemaker-containers/contents/{+path}","compare_url":"https://api.github.com/repos/iquintero/sagemaker-containers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iquintero/sagemaker-containers/merges","archive_url":"https://api.github.com/repos/iquintero/sagemaker-containers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iquintero/sagemaker-containers/downloads","issues_url":"https://api.github.com/repos/iquintero/sagemaker-containers/issues{/number}","pulls_url":"https://api.github.com/repos/iquintero/sagemaker-containers/pulls{/number}","milestones_url":"https://api.github.com/repos/iquintero/sagemaker-containers/milestones{/number}","notifications_url":"https://api.github.com/repos/iquintero/sagemaker-containers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iquintero/sagemaker-containers/labels{/name}","releases_url":"https://api.github.com/repos/iquintero/sagemaker-containers/releases{/id}","deployments_url":"https://api.github.com/repos/iquintero/sagemaker-containers/deployments","created_at":"2018-04-19T20:06:49Z","updated_at":"2018-04-19T20:06:50Z","pushed_at":"2018-05-04T19:48:33Z","git_url":"git://github.com/iquintero/sagemaker-containers.git","ssh_url":"git@github.com:iquintero/sagemaker-containers.git","clone_url":"https://github.com/iquintero/sagemaker-containers.git","svn_url":"https://github.com/iquintero/sagemaker-containers","homepage":null,"size":190,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aws:r2.0","ref":"r2.0","sha":"14c1afaa7caa898c0ad30d4eb665b2e2845156c8","user":{"login":"aws","id":2232217,"avatar_url":"https://avatars3.githubusercontent.com/u/2232217?v=4","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"repo":{"id":118807445,"name":"sagemaker-containers","full_name":"aws/sagemaker-containers","owner":{"login":"aws","id":2232217,"avatar_url":"https://avatars3.githubusercontent.com/u/2232217?v=4","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws/sagemaker-containers","description":"This support code is used for making machine learning frameworks (e.g. MXNet, TensorFlow) run on Amazon SageMaker. ","fork":false,"url":"https://api.github.com/repos/aws/sagemaker-containers","forks_url":"https://api.github.com/repos/aws/sagemaker-containers/forks","keys_url":"https://api.github.com/repos/aws/sagemaker-containers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/sagemaker-containers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/sagemaker-containers/teams","hooks_url":"https://api.github.com/repos/aws/sagemaker-containers/hooks","issue_events_url":"https://api.github.com/repos/aws/sagemaker-containers/issues/events{/number}","events_url":"https://api.github.com/repos/aws/sagemaker-containers/events","assignees_url":"https://api.github.com/repos/aws/sagemaker-containers/assignees{/user}","branches_url":"https://api.github.com/repos/aws/sagemaker-containers/branches{/branch}","tags_url":"https://api.github.com/repos/aws/sagemaker-containers/tags","blobs_url":"https://api.github.com/repos/aws/sagemaker-containers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/sagemaker-containers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/sagemaker-containers/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/sagemaker-containers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/sagemaker-containers/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/sagemaker-containers/languages","stargazers_url":"https://api.github.com/repos/aws/sagemaker-containers/stargazers","contributors_url":"https://api.github.com/repos/aws/sagemaker-containers/contributors","subscribers_url":"https://api.github.com/repos/aws/sagemaker-containers/subscribers","subscription_url":"https://api.github.com/repos/aws/sagemaker-containers/subscription","commits_url":"https://api.github.com/repos/aws/sagemaker-containers/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/sagemaker-containers/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/sagemaker-containers/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/sagemaker-containers/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/sagemaker-containers/contents/{+path}","compare_url":"https://api.github.com/repos/aws/sagemaker-containers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/sagemaker-containers/merges","archive_url":"https://api.github.com/repos/aws/sagemaker-containers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/sagemaker-containers/downloads","issues_url":"https://api.github.com/repos/aws/sagemaker-containers/issues{/number}","pulls_url":"https://api.github.com/repos/aws/sagemaker-containers/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/sagemaker-containers/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/sagemaker-containers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/sagemaker-containers/labels{/name}","releases_url":"https://api.github.com/repos/aws/sagemaker-containers/releases{/id}","deployments_url":"https://api.github.com/repos/aws/sagemaker-containers/deployments","created_at":"2018-01-24T18:48:58Z","updated_at":"2018-05-02T22:30:11Z","pushed_at":"2018-05-04T19:48:34Z","git_url":"git://github.com/aws/sagemaker-containers.git","ssh_url":"git@github.com:aws/sagemaker-containers.git","clone_url":"https://github.com/aws/sagemaker-containers.git","svn_url":"https://github.com/aws/sagemaker-containers","homepage":null,"size":176,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":8,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47"},"html":{"href":"https://github.com/aws/sagemaker-containers/pull/47"},"issue":{"href":"https://api.github.com/repos/aws/sagemaker-containers/issues/47"},"comments":{"href":"https://api.github.com/repos/aws/sagemaker-containers/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/sagemaker-containers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/sagemaker-containers/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/aws/sagemaker-containers/statuses/561a0801477481991778eb08b161ac65cf2db55b"}},"author_association":"NONE"}}
{"actor":{"display_login":"mvsusp"}}