Skip to content

Commit 0c5b274

Browse files
Merge branch 'master' into deprecate_lambda_model
2 parents a0ca81c + b52b5db commit 0c5b274

File tree

1 file changed

+27
-31
lines changed

1 file changed

+27
-31
lines changed

src/sagemaker/estimator.py

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,63 +11,54 @@
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
1313
"""Placeholder docstring"""
14-
from __future__ import print_function, absolute_import
14+
from __future__ import absolute_import, print_function
1515

1616
import json
1717
import logging
1818
import os
1919
import uuid
20+
from abc import ABCMeta, abstractmethod
2021

21-
from abc import ABCMeta
22-
from abc import abstractmethod
23-
24-
from six import with_metaclass
25-
from six import string_types
22+
from six import string_types, with_metaclass
2623
from six.moves.urllib.parse import urlparse
24+
2725
import sagemaker
28-
from sagemaker import git_utils, image_uris
26+
from sagemaker import git_utils, image_uris, vpc_utils
2927
from sagemaker.analytics import TrainingJobAnalytics
30-
from sagemaker.debugger import TensorBoardOutputConfig # noqa: F401 # pylint: disable=unused-import
31-
from sagemaker.debugger import (
28+
from sagemaker.debugger import ( # noqa: F401 # pylint: disable=unused-import
3229
DEBUGGER_FLAG,
3330
DebuggerHookConfig,
3431
FrameworkProfile,
35-
get_default_profiler_rule,
36-
get_rule_container_image_uri,
3732
ProfilerConfig,
3833
ProfilerRule,
3934
Rule,
35+
TensorBoardOutputConfig,
36+
get_default_profiler_rule,
37+
get_rule_container_image_uri,
4038
)
41-
from sagemaker.deprecations import (
42-
removed_kwargs,
43-
removed_function,
44-
renamed_kwargs,
45-
)
46-
from sagemaker.s3 import S3Uploader, parse_s3_url
47-
39+
from sagemaker.deprecations import removed_function, removed_kwargs, renamed_kwargs
4840
from sagemaker.fw_utils import (
49-
tar_and_upload_dir,
5041
UploadedCode,
51-
validate_source_dir,
5242
_region_supports_debugger,
5343
_region_supports_profiler,
5444
get_mp_parameters,
45+
tar_and_upload_dir,
46+
validate_source_dir,
5547
)
56-
from sagemaker.workflow.properties import Properties
57-
from sagemaker.workflow.parameters import Parameter
58-
from sagemaker.workflow.entities import Expression
5948
from sagemaker.inputs import TrainingInput
6049
from sagemaker.job import _Job
6150
from sagemaker.local import LocalSession
62-
from sagemaker.model import Model, NEO_ALLOWED_FRAMEWORKS
6351
from sagemaker.model import (
64-
SCRIPT_PARAM_NAME,
65-
DIR_PARAM_NAME,
6652
CONTAINER_LOG_LEVEL_PARAM_NAME,
53+
DIR_PARAM_NAME,
6754
JOB_NAME_PARAM_NAME,
55+
NEO_ALLOWED_FRAMEWORKS,
6856
SAGEMAKER_REGION_PARAM_NAME,
57+
SCRIPT_PARAM_NAME,
58+
Model,
6959
)
7060
from sagemaker.predictor import Predictor
61+
from sagemaker.s3 import S3Uploader, parse_s3_url
7162
from sagemaker.session import Session
7263
from sagemaker.transformer import Transformer
7364
from sagemaker.utils import (
@@ -77,7 +68,9 @@
7768
get_config_value,
7869
name_from_base,
7970
)
80-
from sagemaker import vpc_utils
71+
from sagemaker.workflow.entities import Expression
72+
from sagemaker.workflow.parameters import Parameter
73+
from sagemaker.workflow.properties import Properties
8174

8275
logger = logging.getLogger(__name__)
8376

@@ -150,11 +143,14 @@ def __init__(
150143
60 * 60). After this amount of time Amazon SageMaker terminates
151144
the job regardless of its current status.
152145
input_mode (str): The input mode that the algorithm supports
153-
(default: 'File'). Valid modes: 'File' - Amazon SageMaker copies
154-
the training dataset from the S3 location to a local directory.
146+
(default: 'File'). Valid modes:
147+
'File' - Amazon SageMaker copiesthe training dataset from the
148+
S3 location to a local directory.
155149
'Pipe' - Amazon SageMaker streams data directly from S3 to the
156-
container via a Unix-named pipe. This argument can be overriden
157-
on a per-channel basis using
150+
container via a Unix-named pipe.
151+
'FastFile' - Amazon SageMaker streams data from S3 on demand instead of
152+
downloading the entire dataset before training begins. This argument can
153+
be overriden on a per-channel basis using
158154
``sagemaker.inputs.TrainingInput.input_mode``.
159155
output_path (str): S3 location for saving the training result (model
160156
artifacts and output files). If not specified, results are

0 commit comments

Comments
 (0)