ModelMetricsProperty Struct
Contains metrics captured from a model.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const modelMetricsProperty: sagemaker.CfnModelPackage.ModelMetricsProperty = {
bias: {
postTrainingReport: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
preTrainingReport: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
report: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
},
explainability: {
report: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
},
modelDataQuality: {
constraints: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
statistics: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
},
modelQuality: {
constraints: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
statistics: {
contentType: 'contentType',
s3Uri: 's3Uri',
// the properties below are optional
contentDigest: 'contentDigest',
},
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
model_metrics_property = sagemaker.CfnModelPackage.ModelMetricsProperty(
bias=sagemaker.CfnModelPackage.BiasProperty(
post_training_report=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
),
pre_training_report=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
),
report=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
)
),
explainability=sagemaker.CfnModelPackage.ExplainabilityProperty(
report=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
)
),
model_data_quality=sagemaker.CfnModelPackage.ModelDataQualityProperty(
constraints=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
),
statistics=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
)
),
model_quality=sagemaker.CfnModelPackage.ModelQualityProperty(
constraints=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
),
statistics=sagemaker.CfnModelPackage.MetricsSourceProperty(
content_type="contentType",
s3_uri="s3Uri",
# the properties below are optional
content_digest="contentDigest"
)
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
ModelMetricsProperty modelMetricsProperty = ModelMetricsProperty.builder()
.bias(BiasProperty.builder()
.postTrainingReport(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.preTrainingReport(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.report(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.explainability(ExplainabilityProperty.builder()
.report(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.modelDataQuality(ModelDataQualityProperty.builder()
.constraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.statistics(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.modelQuality(ModelQualityProperty.builder()
.constraints(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.statistics(MetricsSourceProperty.builder()
.contentType("contentType")
.s3Uri("s3Uri")
// the properties below are optional
.contentDigest("contentDigest")
.build())
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var modelMetricsProperty = new ModelMetricsProperty {
Bias = new BiasProperty {
PostTrainingReport = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
},
PreTrainingReport = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
},
Report = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
}
},
Explainability = new ExplainabilityProperty {
Report = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
}
},
ModelDataQuality = new ModelDataQualityProperty {
Constraints = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
},
Statistics = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
}
},
ModelQuality = new ModelQualityProperty {
Constraints = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
},
Statistics = new MetricsSourceProperty {
ContentType = "contentType",
S3Uri = "s3Uri",
// the properties below are optional
ContentDigest = "contentDigest"
}
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
modelMetricsProperty := &ModelMetricsProperty{
Bias: &BiasProperty{
PostTrainingReport: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
PreTrainingReport: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
Report: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
},
Explainability: &ExplainabilityProperty{
Report: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
},
ModelDataQuality: &ModelDataQualityProperty{
Constraints: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
Statistics: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
},
ModelQuality: &ModelQualityProperty{
Constraints: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
Statistics: &MetricsSourceProperty{
ContentType: jsii.String("contentType"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
ContentDigest: jsii.String("contentDigest"),
},
},
}
Properties
biasoptionalIResolvable | CfnModelPackage.BiasPropertybiasoptionaltyping.Union[IResolvable, BiasProperty]biasoptionalIResolvableBiasoptionalIResolvableBiasoptionalinterface{} #Metrics that measure bias in a model.
explainabilityoptionalIResolvable | CfnModelPackage.explainabilityoptionaltyping.Union[IResolvable, ExplainabilityProperty]explainabilityoptionalIResolvableExplainabilityoptionalIResolvableExplainabilityoptionalinterface{} #Metrics that help explain a model.
modelDataQualityoptionalIResolvable | CfnModelPackage.model_data_qualityoptionaltyping.Union[IResolvable, ModelDataQualityProperty]modelDataQualityoptionalIResolvableModelDataQualityoptionalIResolvableModelDataQualityoptionalinterface{} #Metrics that measure the quality of the input data for a model.
modelQualityoptionalIResolvable | CfnModelPackage.model_qualityoptionaltyping.Union[IResolvable, ModelQualityProperty]modelQualityoptionalIResolvableModelQualityoptionalIResolvableModelQualityoptionalinterface{} #Metrics that measure the quality of a model.