From 762650fe2fcd30ac5c076c4d7eccc1b80e3f0e2d Mon Sep 17 00:00:00 2001 From: Shotaro Kohama Date: Fri, 2 Feb 2018 17:32:59 +0900 Subject: [PATCH 1/3] Fix description of an argument of sagemaker.session.train 'input_config' should be an array which has channel objects. --- src/sagemaker/session.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/sagemaker/session.py b/src/sagemaker/session.py index 0a175825b3..d0ef457b6b 100644 --- a/src/sagemaker/session.py +++ b/src/sagemaker/session.py @@ -195,17 +195,7 @@ def train(self, image, input_mode, input_config, role, job_name, output_config, a directory in the Docker container. * 'Pipe' - Amazon SageMaker streams data directly from S3 to the container via a Unix-named pipe. - input_config (str or dict or sagemaker.session.s3_input): Information about the training data. - This can be one of three types: - - * (str) - the S3 location where training data is saved. - * (dict[str, str] or dict[str, sagemaker.session.s3_input]) - If using multiple channels for - training data, you can specify a dict mapping channel names - to strings or :func:`~sagemaker.session.s3_input` objects. - * (sagemaker.session.s3_input) - channel configuration for S3 data sources that can provide - additional information about the training dataset. See :func:`sagemaker.session.s3_input` - for full details. - + input_config (list): An array of Channel objects. Each channel is a named input source. role (str): An AWS IAM role (either name or full ARN). The Amazon SageMaker training jobs and APIs that create Amazon SageMaker endpoints use this role to access training data and model artifacts. You must grant sufficient permissions to this role. From 3671efe8b3971e5b3d83e1413ab045d1be08713e Mon Sep 17 00:00:00 2001 From: Shotaro Kohama Date: Tue, 6 Feb 2018 10:28:53 +0900 Subject: [PATCH 2/3] Add a link to the botocore docs --- src/sagemaker/session.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sagemaker/session.py b/src/sagemaker/session.py index d0ef457b6b..6fa840dabe 100644 --- a/src/sagemaker/session.py +++ b/src/sagemaker/session.py @@ -195,7 +195,9 @@ def train(self, image, input_mode, input_config, role, job_name, output_config, a directory in the Docker container. * 'Pipe' - Amazon SageMaker streams data directly from S3 to the container via a Unix-named pipe. - input_config (list): An array of Channel objects. Each channel is a named input source. + input_config (list): An array of Channel objects. Each channel is a named input source. Please refer to + the format details described: + https://botocore.readthedocs.io/en/latest/reference/services/sagemaker.html#SageMaker.Client.create_training_job role (str): An AWS IAM role (either name or full ARN). The Amazon SageMaker training jobs and APIs that create Amazon SageMaker endpoints use this role to access training data and model artifacts. You must grant sufficient permissions to this role. From a7178c38da0c8059f674c97bb0ebbb50def16ca2 Mon Sep 17 00:00:00 2001 From: Shotaro Kohama Date: Wed, 7 Feb 2018 10:33:25 +0900 Subject: [PATCH 3/3] Use 'list' instead of 'array' in the description --- src/sagemaker/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sagemaker/session.py b/src/sagemaker/session.py index 6fa840dabe..bd13870fdd 100644 --- a/src/sagemaker/session.py +++ b/src/sagemaker/session.py @@ -195,7 +195,7 @@ def train(self, image, input_mode, input_config, role, job_name, output_config, a directory in the Docker container. * 'Pipe' - Amazon SageMaker streams data directly from S3 to the container via a Unix-named pipe. - input_config (list): An array of Channel objects. Each channel is a named input source. Please refer to + input_config (list): A list of Channel objects. Each channel is a named input source. Please refer to the format details described: https://botocore.readthedocs.io/en/latest/reference/services/sagemaker.html#SageMaker.Client.create_training_job role (str): An AWS IAM role (either name or full ARN). The Amazon SageMaker training jobs and APIs