sagemaker-core 1.0.6__py3-none-any.whl → 1.0.7__py3-none-any.whl

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.

Potentially problematic release.


This version of sagemaker-core might be problematic. Click here for more details.

@@ -797,6 +797,16 @@ SHAPE_DAG = {
797
797
  ],
798
798
  "type": "structure",
799
799
  },
800
+ "BatchGetMetricsRequest": {
801
+ "members": [{"name": "MetricQueries", "shape": "MetricQueryList", "type": "list"}],
802
+ "type": "structure",
803
+ },
804
+ "BatchGetMetricsResponse": {
805
+ "members": [
806
+ {"name": "MetricQueryResults", "shape": "MetricQueryResultList", "type": "list"}
807
+ ],
808
+ "type": "structure",
809
+ },
800
810
  "BatchGetRecordError": {
801
811
  "members": [
802
812
  {"name": "FeatureGroupName", "shape": "ValueAsString", "type": "string"},
@@ -9659,6 +9669,33 @@ SHAPE_DAG = {
9659
9669
  "member_type": "structure",
9660
9670
  "type": "list",
9661
9671
  },
9672
+ "MetricQuery": {
9673
+ "members": [
9674
+ {"name": "MetricName", "shape": "MetricName", "type": "string"},
9675
+ {"name": "ResourceArn", "shape": "SageMakerResourceArn", "type": "string"},
9676
+ {"name": "MetricStat", "shape": "MetricStatistic", "type": "string"},
9677
+ {"name": "Period", "shape": "Period", "type": "string"},
9678
+ {"name": "XAxisType", "shape": "XAxisType", "type": "string"},
9679
+ {"name": "Start", "shape": "Long", "type": "long"},
9680
+ {"name": "End", "shape": "Long", "type": "long"},
9681
+ ],
9682
+ "type": "structure",
9683
+ },
9684
+ "MetricQueryList": {"member_shape": "MetricQuery", "member_type": "structure", "type": "list"},
9685
+ "MetricQueryResult": {
9686
+ "members": [
9687
+ {"name": "Status", "shape": "MetricQueryResultStatus", "type": "string"},
9688
+ {"name": "Message", "shape": "Message", "type": "string"},
9689
+ {"name": "XAxisValues", "shape": "XAxisValues", "type": "list"},
9690
+ {"name": "MetricValues", "shape": "MetricValues", "type": "list"},
9691
+ ],
9692
+ "type": "structure",
9693
+ },
9694
+ "MetricQueryResultList": {
9695
+ "member_shape": "MetricQueryResult",
9696
+ "member_type": "structure",
9697
+ "type": "list",
9698
+ },
9662
9699
  "MetricSpecification": {
9663
9700
  "members": [
9664
9701
  {"name": "Predefined", "shape": "PredefinedMetricSpecification", "type": "structure"},
@@ -9666,6 +9703,7 @@ SHAPE_DAG = {
9666
9703
  ],
9667
9704
  "type": "structure",
9668
9705
  },
9706
+ "MetricValues": {"member_shape": "Double", "member_type": "double", "type": "list"},
9669
9707
  "MetricsSource": {
9670
9708
  "members": [
9671
9709
  {"name": "ContentType", "shape": "ContentType", "type": "string"},
@@ -12459,6 +12497,7 @@ SHAPE_DAG = {
12459
12497
  {"name": "CompressionType", "shape": "ModelCompressionType", "type": "string"},
12460
12498
  {"name": "ModelAccessConfig", "shape": "ModelAccessConfig", "type": "structure"},
12461
12499
  {"name": "HubAccessConfig", "shape": "InferenceHubAccessConfig", "type": "structure"},
12500
+ {"name": "ManifestS3Uri", "shape": "S3ModelUri", "type": "string"},
12462
12501
  ],
12463
12502
  "type": "structure",
12464
12503
  },
@@ -14796,4 +14835,5 @@ SHAPE_DAG = {
14796
14835
  "type": "structure",
14797
14836
  },
14798
14837
  "Workteams": {"member_shape": "Workteam", "member_type": "structure", "type": "list"},
14838
+ "XAxisValues": {"member_shape": "Long", "member_type": "long", "type": "list"},
14799
14839
  }
@@ -469,6 +469,7 @@ SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA = {
469
469
  "s3_data_source": {
470
470
  "s3_uri": {"type": "string"},
471
471
  "s3_data_type": {"type": "string"},
472
+ "manifest_s3_uri": {"type": "string"},
472
473
  }
473
474
  }
474
475
  },
@@ -362,6 +362,50 @@ class ResourceNotFound(Base):
362
362
  message: Optional[str] = Unassigned()
363
363
 
364
364
 
365
+ class MetricQuery(Base):
366
+ """
367
+ MetricQuery
368
+ Specifies a query to retrieve training metrics from SageMaker.
369
+
370
+ Attributes
371
+ ----------------------
372
+ metric_name: The name of the metric to retrieve.
373
+ resource_arn: The ARN of the SageMaker resource to retrieve metrics for.
374
+ metric_stat: The metrics stat type of metrics to retrieve.
375
+ period: The time period of metrics to retrieve.
376
+ x_axis_type: The x-axis type of metrics to retrieve.
377
+ start: The start time of metrics to retrieve.
378
+ end: The end time of metrics to retrieve.
379
+ """
380
+
381
+ metric_name: str
382
+ resource_arn: str
383
+ metric_stat: str
384
+ period: str
385
+ x_axis_type: str
386
+ start: Optional[int] = Unassigned()
387
+ end: Optional[int] = Unassigned()
388
+
389
+
390
+ class MetricQueryResult(Base):
391
+ """
392
+ MetricQueryResult
393
+ The result of a query to retrieve training metrics from SageMaker.
394
+
395
+ Attributes
396
+ ----------------------
397
+ status: The status of the metric query.
398
+ message: A message describing the status of the metric query.
399
+ x_axis_values: The values for the x-axis of the metrics.
400
+ metric_values: The metric values retrieved by the query.
401
+ """
402
+
403
+ status: str
404
+ x_axis_values: List[int]
405
+ metric_values: List[float]
406
+ message: Optional[str] = Unassigned()
407
+
408
+
365
409
  class BatchPutMetricsError(Base):
366
410
  """
367
411
  BatchPutMetricsError
@@ -491,6 +535,7 @@ class S3ModelDataSource(Base):
491
535
  compression_type: Specifies how the ML model data is prepared. If you choose Gzip and choose S3Object as the value of S3DataType, S3Uri identifies an object that is a gzip-compressed TAR archive. SageMaker will attempt to decompress and untar the object during model deployment. If you choose None and chooose S3Object as the value of S3DataType, S3Uri identifies an object that represents an uncompressed ML model to deploy. If you choose None and choose S3Prefix as the value of S3DataType, S3Uri identifies a key name prefix, under which all objects represents the uncompressed ML model to deploy. If you choose None, then SageMaker will follow rules below when creating model data files under /opt/ml/model directory for use by your inference code: If you choose S3Object as the value of S3DataType, then SageMaker will split the key of the S3 object referenced by S3Uri by slash (/), and use the last part as the filename of the file holding the content of the S3 object. If you choose S3Prefix as the value of S3DataType, then for each S3 object under the key name pefix referenced by S3Uri, SageMaker will trim its key by the prefix, and use the remainder as the path (relative to /opt/ml/model) of the file holding the content of the S3 object. SageMaker will split the remainder by slash (/), using intermediate parts as directory names and the last part as filename of the file holding the content of the S3 object. Do not use any of the following as file names or directory names: An empty or blank string A string which contains null bytes A string longer than 255 bytes A single dot (.) A double dot (..) Ambiguous file names will result in model deployment failure. For example, if your uncompressed ML model consists of two S3 objects s3://mybucket/model/weights and s3://mybucket/model/weights/part1 and you specify s3://mybucket/model/ as the value of S3Uri and S3Prefix as the value of S3DataType, then it will result in name clash between /opt/ml/model/weights (a regular file) and /opt/ml/model/weights/ (a directory). Do not organize the model artifacts in S3 console using folders. When you create a folder in S3 console, S3 creates a 0-byte object with a key set to the folder name you provide. They key of the 0-byte object ends with a slash (/) which violates SageMaker restrictions on model artifact file names, leading to model deployment failure.
492
536
  model_access_config: Specifies the access configuration file for the ML model. You can explicitly accept the model end-user license agreement (EULA) within the ModelAccessConfig. You are responsible for reviewing and complying with any applicable license terms and making sure they are acceptable for your use case before downloading or using a model.
493
537
  hub_access_config: Configuration information for hub access.
538
+ manifest_s3_uri: The Amazon S3 URI of the manifest file. The manifest file is a CSV file that stores the artifact locations.
494
539
  """
495
540
 
496
541
  s3_uri: str
@@ -498,6 +543,7 @@ class S3ModelDataSource(Base):
498
543
  compression_type: str
499
544
  model_access_config: Optional[ModelAccessConfig] = Unassigned()
500
545
  hub_access_config: Optional[InferenceHubAccessConfig] = Unassigned()
546
+ manifest_s3_uri: Optional[str] = Unassigned()
501
547
 
502
548
 
503
549
  class ModelDataSource(Base):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sagemaker-core
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: An python package for sagemaker core functionalities
5
5
  Author-email: AWS <sagemaker-interests@amazon.com>
6
6
  Project-URL: Repository, https://github.com/aws/sagemaker-core.git
@@ -3,18 +3,18 @@ sagemaker_core/_version.py,sha256=t-XEKT8_pvKkl5z_UrfcIU256c_NxaI16qGWMuNVpbM,32
3
3
  sagemaker_core/helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  sagemaker_core/helper/session_helper.py,sha256=GO1UJgpN1L9a25nYlVb-KWk4KvmFzVkLqFMqw-VaI4c,33126
5
5
  sagemaker_core/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- sagemaker_core/main/config_schema.py,sha256=IDvL1YuMOwVg4nb0D4ysU51tc1UjlQASyz1QZoncs7I,56907
6
+ sagemaker_core/main/config_schema.py,sha256=TeGoTobT4yotEVyfguLF0IdKYlOymsDZ45ySxXiCDuw,56998
7
7
  sagemaker_core/main/exceptions.py,sha256=87DUlrmHxaWoiYNlpNY9ixxFMPRk_dIGPsA2e_xdVwQ,5602
8
8
  sagemaker_core/main/intelligent_defaults_helper.py,sha256=5SDM6UavZtp-k5LhqRL7GRIDgzFB5UsC_p7YuiSPK9A,8334
9
9
  sagemaker_core/main/resources.py,sha256=S4wuM705rkah3cFO-kfWAXPgYq7SI3PG2Qh6ZHtfTfk,1314805
10
- sagemaker_core/main/shapes.py,sha256=kuefQBAgOogQynQikMq-6RxNezaVXE3ChwJedvVMAFw,693437
10
+ sagemaker_core/main/shapes.py,sha256=75mSyS_bGPAIcFFwWD5b_Hc4TBNFgNKJGKzcNnY33ro,694903
11
11
  sagemaker_core/main/user_agent.py,sha256=4sZybDXkzRoZnOnVDQ8p8zFTfiRJdsH7amDWInVQ4xU,2708
12
12
  sagemaker_core/main/utils.py,sha256=lXkJyiCow5uf32l0EmkimB0RKVk2BS7OM2fYoLsOfD4,18346
13
13
  sagemaker_core/main/code_injection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  sagemaker_core/main/code_injection/base.py,sha256=11_Jif0nOzfbLGlXaacKf-wcizzfS64U0OSZGoVffFU,1733
15
15
  sagemaker_core/main/code_injection/codec.py,sha256=2DjmeD2uND307UqDefvVEpE0rZ8yfFU3Bi3TvQCQveI,7658
16
16
  sagemaker_core/main/code_injection/constants.py,sha256=2ICExGge8vAWx7lSTW0JGh-bH1korkvpOpDu5M63eI4,980
17
- sagemaker_core/main/code_injection/shape_dag.py,sha256=iIkfDlMpNdzeLY958ZB3VTD55BJC1sid3qry-YOG-rM,655019
17
+ sagemaker_core/main/code_injection/shape_dag.py,sha256=hyvmKI2IWBEt21fCQrpSmi4d1YzOpfiG5CGNwRpsziY,656883
18
18
  sagemaker_core/resources/__init__.py,sha256=EAYTFMN-nPjnPjjBbhIUeaL67FLKNPd7qbcbl9VIrws,31
19
19
  sagemaker_core/shapes/__init__.py,sha256=RnbIu9eTxKt-DNsOFJabrWIgrrtS9_SdAozP9JBl_ic,28
20
20
  sagemaker_core/tools/__init__.py,sha256=xX79JImxCVzrWMnjgntLCve2G5I-R4pRar5s20kT9Rs,56
@@ -27,8 +27,8 @@ sagemaker_core/tools/resources_extractor.py,sha256=hN61ehZbPnhFW-2FIVDi7NsEz4rLv
27
27
  sagemaker_core/tools/shapes_codegen.py,sha256=_ve959bwH8usZ6dPlpXxi2on9t0hLpcmhRWnaWHCWMQ,11745
28
28
  sagemaker_core/tools/shapes_extractor.py,sha256=4KjgDmhlPM4G1f1NeYbORKlXs1s7Q_sm_NK31S_ROQ0,11950
29
29
  sagemaker_core/tools/templates.py,sha256=nze_A01EpegYUwoR_gRv2qBNKNFruBY8L3RiIX5lz3M,22458
30
- sagemaker_core-1.0.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
- sagemaker_core-1.0.6.dist-info/METADATA,sha256=yoth9VivBfunXlVEWY3wT575kCh-QM4zZn44LjSn3UQ,4877
32
- sagemaker_core-1.0.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
33
- sagemaker_core-1.0.6.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
34
- sagemaker_core-1.0.6.dist-info/RECORD,,
30
+ sagemaker_core-1.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
31
+ sagemaker_core-1.0.7.dist-info/METADATA,sha256=v4aXFGELDKUqmf_ZdLBgMzzqulDx2TXKJ_p83nKsxTE,4877
32
+ sagemaker_core-1.0.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
33
+ sagemaker_core-1.0.7.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
34
+ sagemaker_core-1.0.7.dist-info/RECORD,,