sagemaker-core 1.0.7__tar.gz → 1.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sagemaker_core-1.0.7/src/sagemaker_core.egg-info → sagemaker_core-1.0.8}/PKG-INFO +1 -1
- sagemaker_core-1.0.8/VERSION +1 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/shape_dag.py +28 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/resources.py +50 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/shapes.py +34 -3
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8/src/sagemaker_core.egg-info}/PKG-INFO +1 -1
- sagemaker_core-1.0.7/VERSION +0 -1
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/LICENSE +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/MANIFEST.in +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/README.rst +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/pyproject.toml +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/setup.cfg +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/__init__.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/_version.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/helper/__init__.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/helper/session_helper.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/__init__.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/__init__.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/base.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/codec.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/constants.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/config_schema.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/exceptions.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/intelligent_defaults_helper.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/user_agent.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/utils.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/resources/__init__.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/shapes/__init__.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/__init__.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/codegen.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/constants.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/data_extractor.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/method.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/resources_codegen.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/resources_extractor.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/shapes_codegen.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/shapes_extractor.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/templates.py +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core.egg-info/SOURCES.txt +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core.egg-info/dependency_links.txt +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core.egg-info/requires.txt +0 -0
- {sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.8
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/shape_dag.py
RENAMED
|
@@ -6573,7 +6573,24 @@ SHAPE_DAG = {
|
|
|
6573
6573
|
},
|
|
6574
6574
|
"Groups": {"member_shape": "Group", "member_type": "string", "type": "list"},
|
|
6575
6575
|
"HiddenAppTypesList": {"member_shape": "AppType", "member_type": "string", "type": "list"},
|
|
6576
|
+
"HiddenInstanceTypesList": {
|
|
6577
|
+
"member_shape": "AppInstanceType",
|
|
6578
|
+
"member_type": "string",
|
|
6579
|
+
"type": "list",
|
|
6580
|
+
},
|
|
6576
6581
|
"HiddenMlToolsList": {"member_shape": "MlTools", "member_type": "string", "type": "list"},
|
|
6582
|
+
"HiddenSageMakerImage": {
|
|
6583
|
+
"members": [
|
|
6584
|
+
{"name": "SageMakerImageName", "shape": "SageMakerImageName", "type": "string"},
|
|
6585
|
+
{"name": "VersionAliases", "shape": "VersionAliasesList", "type": "list"},
|
|
6586
|
+
],
|
|
6587
|
+
"type": "structure",
|
|
6588
|
+
},
|
|
6589
|
+
"HiddenSageMakerImageVersionAliasesList": {
|
|
6590
|
+
"member_shape": "HiddenSageMakerImage",
|
|
6591
|
+
"member_type": "structure",
|
|
6592
|
+
"type": "list",
|
|
6593
|
+
},
|
|
6577
6594
|
"HolidayConfig": {
|
|
6578
6595
|
"member_shape": "HolidayConfigAttributes",
|
|
6579
6596
|
"member_type": "structure",
|
|
@@ -13135,6 +13152,12 @@ SHAPE_DAG = {
|
|
|
13135
13152
|
"members": [
|
|
13136
13153
|
{"name": "HiddenMlTools", "shape": "HiddenMlToolsList", "type": "list"},
|
|
13137
13154
|
{"name": "HiddenAppTypes", "shape": "HiddenAppTypesList", "type": "list"},
|
|
13155
|
+
{"name": "HiddenInstanceTypes", "shape": "HiddenInstanceTypesList", "type": "list"},
|
|
13156
|
+
{
|
|
13157
|
+
"name": "HiddenSageMakerImageVersionAliases",
|
|
13158
|
+
"shape": "HiddenSageMakerImageVersionAliasesList",
|
|
13159
|
+
"type": "list",
|
|
13160
|
+
},
|
|
13138
13161
|
],
|
|
13139
13162
|
"type": "structure",
|
|
13140
13163
|
},
|
|
@@ -14701,6 +14724,11 @@ SHAPE_DAG = {
|
|
|
14701
14724
|
"members": [{"name": "Dimension", "shape": "Dimension", "type": "integer"}],
|
|
14702
14725
|
"type": "structure",
|
|
14703
14726
|
},
|
|
14727
|
+
"VersionAliasesList": {
|
|
14728
|
+
"member_shape": "ImageVersionAliasPattern",
|
|
14729
|
+
"member_type": "string",
|
|
14730
|
+
"type": "list",
|
|
14731
|
+
},
|
|
14704
14732
|
"Vertex": {
|
|
14705
14733
|
"members": [
|
|
14706
14734
|
{"name": "Arn", "shape": "AssociationEntityArn", "type": "string"},
|
|
@@ -16518,6 +16518,7 @@ class Model(Base):
|
|
|
16518
16518
|
"s3_data_source": {
|
|
16519
16519
|
"s3_uri": {"type": "string"},
|
|
16520
16520
|
"s3_data_type": {"type": "string"},
|
|
16521
|
+
"manifest_s3_uri": {"type": "string"},
|
|
16521
16522
|
}
|
|
16522
16523
|
}
|
|
16523
16524
|
},
|
|
@@ -27953,6 +27954,55 @@ class TrialComponent(Base):
|
|
|
27953
27954
|
response = client.batch_put_metrics(**operation_input_args)
|
|
27954
27955
|
logger.debug(f"Response: {response}")
|
|
27955
27956
|
|
|
27957
|
+
@classmethod
|
|
27958
|
+
@Base.add_validate_call
|
|
27959
|
+
def batch_get_metrics(
|
|
27960
|
+
cls,
|
|
27961
|
+
metric_queries: List[MetricQuery],
|
|
27962
|
+
session: Optional[Session] = None,
|
|
27963
|
+
region: Optional[str] = None,
|
|
27964
|
+
) -> Optional[BatchGetMetricsResponse]:
|
|
27965
|
+
"""
|
|
27966
|
+
Used to retrieve training metrics from SageMaker.
|
|
27967
|
+
|
|
27968
|
+
Parameters:
|
|
27969
|
+
metric_queries: Queries made to retrieve training metrics from SageMaker.
|
|
27970
|
+
session: Boto3 session.
|
|
27971
|
+
region: Region name.
|
|
27972
|
+
|
|
27973
|
+
Returns:
|
|
27974
|
+
BatchGetMetricsResponse
|
|
27975
|
+
|
|
27976
|
+
Raises:
|
|
27977
|
+
botocore.exceptions.ClientError: This exception is raised for AWS service related errors.
|
|
27978
|
+
The error message and error code can be parsed from the exception as follows:
|
|
27979
|
+
```
|
|
27980
|
+
try:
|
|
27981
|
+
# AWS service call here
|
|
27982
|
+
except botocore.exceptions.ClientError as e:
|
|
27983
|
+
error_message = e.response['Error']['Message']
|
|
27984
|
+
error_code = e.response['Error']['Code']
|
|
27985
|
+
```
|
|
27986
|
+
"""
|
|
27987
|
+
|
|
27988
|
+
operation_input_args = {
|
|
27989
|
+
"MetricQueries": metric_queries,
|
|
27990
|
+
}
|
|
27991
|
+
# serialize the input request
|
|
27992
|
+
operation_input_args = serialize(operation_input_args)
|
|
27993
|
+
logger.debug(f"Serialized input request: {operation_input_args}")
|
|
27994
|
+
|
|
27995
|
+
client = Base.get_sagemaker_client(
|
|
27996
|
+
session=session, region_name=region, service_name="sagemaker-metrics"
|
|
27997
|
+
)
|
|
27998
|
+
|
|
27999
|
+
logger.debug(f"Calling batch_get_metrics API")
|
|
28000
|
+
response = client.batch_get_metrics(**operation_input_args)
|
|
28001
|
+
logger.debug(f"Response: {response}")
|
|
28002
|
+
|
|
28003
|
+
transformed_response = transform(response, "BatchGetMetricsResponse")
|
|
28004
|
+
return BatchGetMetricsResponse(**transformed_response)
|
|
28005
|
+
|
|
27956
28006
|
|
|
27957
28007
|
class UserProfile(Base):
|
|
27958
28008
|
"""
|
|
@@ -406,6 +406,18 @@ class MetricQueryResult(Base):
|
|
|
406
406
|
message: Optional[str] = Unassigned()
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
class BatchGetMetricsResponse(Base):
|
|
410
|
+
"""
|
|
411
|
+
BatchGetMetricsResponse
|
|
412
|
+
|
|
413
|
+
Attributes
|
|
414
|
+
----------------------
|
|
415
|
+
metric_query_results: The results of a query to retrieve training metrics from SageMaker.
|
|
416
|
+
"""
|
|
417
|
+
|
|
418
|
+
metric_query_results: Optional[List[MetricQueryResult]] = Unassigned()
|
|
419
|
+
|
|
420
|
+
|
|
409
421
|
class BatchPutMetricsError(Base):
|
|
410
422
|
"""
|
|
411
423
|
BatchPutMetricsError
|
|
@@ -4304,6 +4316,21 @@ class CustomFileSystemConfig(Base):
|
|
|
4304
4316
|
efs_file_system_config: Optional[EFSFileSystemConfig] = Unassigned()
|
|
4305
4317
|
|
|
4306
4318
|
|
|
4319
|
+
class HiddenSageMakerImage(Base):
|
|
4320
|
+
"""
|
|
4321
|
+
HiddenSageMakerImage
|
|
4322
|
+
The SageMaker images that are hidden from the Studio user interface. You must specify the SageMaker image name and version aliases.
|
|
4323
|
+
|
|
4324
|
+
Attributes
|
|
4325
|
+
----------------------
|
|
4326
|
+
sage_maker_image_name: The SageMaker image name that you are hiding from the Studio user interface.
|
|
4327
|
+
version_aliases: The version aliases you are hiding from the Studio user interface.
|
|
4328
|
+
"""
|
|
4329
|
+
|
|
4330
|
+
sage_maker_image_name: Optional[str] = Unassigned()
|
|
4331
|
+
version_aliases: Optional[List[str]] = Unassigned()
|
|
4332
|
+
|
|
4333
|
+
|
|
4307
4334
|
class StudioWebPortalSettings(Base):
|
|
4308
4335
|
"""
|
|
4309
4336
|
StudioWebPortalSettings
|
|
@@ -4313,10 +4340,14 @@ class StudioWebPortalSettings(Base):
|
|
|
4313
4340
|
----------------------
|
|
4314
4341
|
hidden_ml_tools: The machine learning tools that are hidden from the Studio left navigation pane.
|
|
4315
4342
|
hidden_app_types: The Applications supported in Studio that are hidden from the Studio left navigation pane.
|
|
4343
|
+
hidden_instance_types: The instance types you are hiding from the Studio user interface.
|
|
4344
|
+
hidden_sage_maker_image_version_aliases: The version aliases you are hiding from the Studio user interface.
|
|
4316
4345
|
"""
|
|
4317
4346
|
|
|
4318
4347
|
hidden_ml_tools: Optional[List[str]] = Unassigned()
|
|
4319
4348
|
hidden_app_types: Optional[List[str]] = Unassigned()
|
|
4349
|
+
hidden_instance_types: Optional[List[str]] = Unassigned()
|
|
4350
|
+
hidden_sage_maker_image_version_aliases: Optional[List[HiddenSageMakerImage]] = Unassigned()
|
|
4320
4351
|
|
|
4321
4352
|
|
|
4322
4353
|
class UserSettings(Base):
|
|
@@ -5849,15 +5880,15 @@ class HumanTaskConfig(Base):
|
|
|
5849
5880
|
|
|
5850
5881
|
workteam_arn: str
|
|
5851
5882
|
ui_config: UiConfig
|
|
5852
|
-
pre_human_task_lambda_arn: str
|
|
5853
5883
|
task_title: str
|
|
5854
5884
|
task_description: str
|
|
5855
5885
|
number_of_human_workers_per_data_object: int
|
|
5856
5886
|
task_time_limit_in_seconds: int
|
|
5857
|
-
|
|
5887
|
+
pre_human_task_lambda_arn: Optional[str] = Unassigned()
|
|
5858
5888
|
task_keywords: Optional[List[str]] = Unassigned()
|
|
5859
5889
|
task_availability_lifetime_in_seconds: Optional[int] = Unassigned()
|
|
5860
5890
|
max_concurrent_task_count: Optional[int] = Unassigned()
|
|
5891
|
+
annotation_consolidation_config: Optional[AnnotationConsolidationConfig] = Unassigned()
|
|
5861
5892
|
public_workforce_task_price: Optional[PublicWorkforceTaskPrice] = Unassigned()
|
|
5862
5893
|
|
|
5863
5894
|
|
|
@@ -9979,7 +10010,7 @@ class LabelingJobSummary(Base):
|
|
|
9979
10010
|
labeling_job_status: str
|
|
9980
10011
|
label_counters: LabelCounters
|
|
9981
10012
|
workteam_arn: str
|
|
9982
|
-
pre_human_task_lambda_arn: str
|
|
10013
|
+
pre_human_task_lambda_arn: Optional[str] = Unassigned()
|
|
9983
10014
|
annotation_consolidation_lambda_arn: Optional[str] = Unassigned()
|
|
9984
10015
|
failure_reason: Optional[str] = Unassigned()
|
|
9985
10016
|
labeling_job_output: Optional[LabelingJobOutput] = Unassigned()
|
sagemaker_core-1.0.7/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.0.7
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/__init__.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/base.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/codec.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/code_injection/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/main/intelligent_defaults_helper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core/tools/resources_extractor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.7 → sagemaker_core-1.0.8}/src/sagemaker_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|