Skip to content

Update docstrings of logs_for_job and train methods #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/sagemaker/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ def train(self, image, input_mode, input_config, role, job_name, output_config,
job_name (str): Name of the training job being created.
output_config (dict): The S3 URI where you want to store the training results and optional KMS key ID.
resource_config (dict): Contains values for ResourceConfig:
instance_count (int): Number of EC2 instances to use for training.
instance_type (str): Type of EC2 instance to use for training, for example, 'ml.c4.xlarge'.
* instance_count (int): Number of EC2 instances to use for training.
The key in resource_config is 'InstanceCount'.
* instance_type (str): Type of EC2 instance to use for training, for example, 'ml.c4.xlarge'.
The key in resource_config is 'InstanceType'.
hyperparameters (dict): Hyperparameters for model training. The hyperparameters are made accessible as
a dict[str, str] to the training code on SageMaker. For convenience, this accepts other types for
keys and values, but ``str()`` will be called to convert them before training.
Expand Down Expand Up @@ -557,7 +559,7 @@ def logs_for_job(self, job_name, wait=False, poll=10): # noqa: C901 - suppress

Args:
job_name (str): Name of the training job to display the logs for.
wait (bool): Whether to keep looking for new log entries until the job completes (default: True).
wait (bool): Whether to keep looking for new log entries until the job completes (default: False).
poll (int): The interval in seconds between polling for new log entries and job completion (default: 5).

Raises:
Expand Down