@@ -60,8 +60,8 @@ def load_sagemaker_config(
60
60
defined by the SDK.
61
61
62
62
Users can override the default admin and user config file paths using the
63
- ``SAGEMAKER_ADMIN_CONFIG_OVERRIDE`` and ``SAGEMAKER_USER_CONFIG_OVERRIDE`` environment variables,
64
- respectively.
63
+ ``SAGEMAKER_ADMIN_CONFIG_OVERRIDE`` and ``SAGEMAKER_USER_CONFIG_OVERRIDE`` environment
64
+ variables, respectively.
65
65
66
66
Additional config file paths can also be provided as a parameter.
67
67
@@ -71,13 +71,16 @@ def load_sagemaker_config(
71
71
* Merges the files in the same order.
72
72
73
73
This method throws exceptions in the following cases:
74
- * ``jsonschema.exceptions.ValidationError``: Schema validation fails for one or more config files.
75
- * ``RuntimeError``: The method is unable to retrieve the list of all S3 files with the same prefix or is unable to retrieve the file.
74
+ * ``jsonschema.exceptions.ValidationError``: Schema validation fails for one or more
75
+ config files.
76
+ * ``RuntimeError``: The method is unable to retrieve the list of all S3 files with the
77
+ same prefix or is unable to retrieve the file.
76
78
* ``ValueError``: There are no S3 files with the prefix when an S3 URI is provided.
77
- * ``ValueError``: There is no config.yaml file in the S3 bucket when an S3 URI is provided.
78
- * ``ValueError``: A file doesn't exist in a path that was specified by the user as part of an
79
- environment variable or additional configuration file path. This doesn't include the default
80
- config file locations.
79
+ * ``ValueError``: There is no config.yaml file in the S3 bucket when an S3 URI is
80
+ provided.
81
+ * ``ValueError``: A file doesn't exist in a path that was specified by the user as
82
+ part of an environment variable or additional configuration file path. This doesn't
83
+ include the default config file locations.
81
84
82
85
Args:
83
86
additional_config_paths: List of config file paths.
@@ -128,7 +131,8 @@ def load_sagemaker_config(
128
131
129
132
130
133
def validate_sagemaker_config (sagemaker_config : dict = None ):
131
- """Validates whether a given dictionary adheres to the schema defined at ``sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA``
134
+ """Validates whether a given dictionary adheres to the schema defined at
135
+ ``sagemaker.config.config_schema.SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA``
132
136
133
137
Args:
134
138
sagemaker_config: A dictionary containing default values for the
0 commit comments