Skip to content

Commit ff097db

Browse files
committed
Fix docstring
1 parent 149ac7a commit ff097db

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/sagemaker/estimator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def __init__(self, role, train_instance_count, train_instance_type,
7979
using the default AWS configuration chain.
8080
tags (list[dict]): List of tags for labeling a training job. For more, see
8181
https://docs.aws.amazon.com/sagemaker/latest/dg/API_Tag.html.
82+
subnets (list[str]): List of subnet ids. If not specified training job will be created without VPC config.
83+
security_group_ids (list[str]): List of security group ids. If not specified training job will be created
84+
without VPC config.
8285
"""
8386
self.role = role
8487
self.train_instance_count = train_instance_count

src/sagemaker/session.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ def train(self, image, input_mode, input_config, role, job_name, output_config,
228228
* instance_type (str): Type of EC2 instance to use for training, for example, 'ml.c4.xlarge'.
229229
The key in resource_config is 'InstanceType'.
230230
231+
vpc_config (dict): Contains values for VpcConfig:
232+
233+
* subnets (list[str]): List of subnet ids.
234+
The key in vpc_config is 'Subnets'.
235+
* security_group_ids (list[str]): List of security group ids.
236+
The key in vpc_config is 'SecurityGroupIds'.
237+
231238
hyperparameters (dict): Hyperparameters for model training. The hyperparameters are made accessible as
232239
a dict[str, str] to the training code on SageMaker. For convenience, this accepts other types for
233240
keys and values, but ``str()`` will be called to convert them before training.

0 commit comments

Comments
 (0)