sagemaker-core 1.0.6__tar.gz → 1.0.7__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.
Potentially problematic release.
This version of sagemaker-core might be problematic. Click here for more details.
- {sagemaker_core-1.0.6/src/sagemaker_core.egg-info → sagemaker_core-1.0.7}/PKG-INFO +1 -1
- sagemaker_core-1.0.7/VERSION +1 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/shape_dag.py +40 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/config_schema.py +1 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/shapes.py +46 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7/src/sagemaker_core.egg-info}/PKG-INFO +1 -1
- sagemaker_core-1.0.6/VERSION +0 -1
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/LICENSE +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/MANIFEST.in +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/README.rst +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/pyproject.toml +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/setup.cfg +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/__init__.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/_version.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/helper/__init__.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/helper/session_helper.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/__init__.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/__init__.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/base.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/codec.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/constants.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/exceptions.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/intelligent_defaults_helper.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/resources.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/user_agent.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/utils.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/resources/__init__.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/shapes/__init__.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/__init__.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/codegen.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/constants.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/data_extractor.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/method.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/resources_codegen.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/resources_extractor.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/shapes_codegen.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/shapes_extractor.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/tools/templates.py +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core.egg-info/SOURCES.txt +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core.egg-info/dependency_links.txt +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core.egg-info/requires.txt +0 -0
- {sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.7
|
{sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/shape_dag.py
RENAMED
|
@@ -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
|
}
|
|
@@ -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):
|
sagemaker_core-1.0.6/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.0.6
|
|
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.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/__init__.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/base.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/codec.py
RENAMED
|
File without changes
|
{sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/src/sagemaker_core/main/code_injection/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/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
|
|
File without changes
|
{sagemaker_core-1.0.6 → sagemaker_core-1.0.7}/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.6 → sagemaker_core-1.0.7}/src/sagemaker_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|