|
1 |
| - |
2 | 1 | ==========================================
|
3 | 2 | TensorFlow SageMaker Estimators and Models
|
4 | 3 | ==========================================
|
@@ -30,7 +29,7 @@ follows:
|
30 | 29 | train_instance_count=1, train_instance_type='ml.p2.xlarge')
|
31 | 30 | tf_estimator.fit('s3://bucket/path/to/training/data')
|
32 | 31 |
|
33 |
| -Where the s3 url is a path to your training data, within Amazon S3. The |
| 32 | +Where the S3 url is a path to your training data, within Amazon S3. The |
34 | 33 | constructor keyword arguments define how SageMaker runs your training
|
35 | 34 | script and are discussed, in detail, in a later section.
|
36 | 35 |
|
@@ -473,11 +472,15 @@ both required and optional arguments.
|
473 | 472 | Required argument
|
474 | 473 | '''''''''''''''''
|
475 | 474 |
|
476 |
| -- ``inputs (str)``: A S3 URI, for example ``s3://my-bucket/my-training-data``, which contains |
477 |
| - the dataset that will be used for training. When the training job starts in SageMaker the |
478 |
| - container will download the dataset. Both ``train_input_fn`` and ``eval_input_fn`` functions |
479 |
| - have a parameter called ``training_dir`` which contains the directory inside the container |
480 |
| - where the dataset was saved into. See `Creating train_input_fn and eval_input_fn functions`_. |
| 475 | +- ``inputs``: The S3 location(s) of datasets to be used for training. This can take one of two forms: |
| 476 | + |
| 477 | + - ``str``: An S3 URI, for example ``s3://my-bucket/my-training-data``, which indicates the dataset's location. |
| 478 | + - ``dict[str, str]``: A dictionary mapping channel names to S3 locations, for example ``{'train': 's3://my-bucket/my-training-data/train', 'test': 's3://my-bucket/my-training-data/test'}`` |
| 479 | + |
| 480 | +When the training job starts in SageMaker the container will download the dataset. |
| 481 | +Both ``train_input_fn`` and ``eval_input_fn`` functions have a parameter called ``training_dir`` which |
| 482 | +contains the directory inside the container where the dataset was saved into. |
| 483 | +See `Creating train_input_fn and eval_input_fn functions`_. |
481 | 484 |
|
482 | 485 | Optional arguments
|
483 | 486 | ''''''''''''''''''
|
|
0 commit comments