MetricDataItemsProperty Struct
Metric data.
The type determines the data types that you specify for value , XAxisName and YAxisName . For information about specifying values for metrics, see model card JSON schema .
| 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';
declare const value: any;
const metricDataItemsProperty: sagemaker.CfnModelCard.MetricDataItemsProperty = {
name: 'name',
type: 'type',
value: value,
// the properties below are optional
notes: 'notes',
xAxisName: ['xAxisName'],
yAxisName: ['yAxisName'],
};
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
# value: Any
metric_data_items_property = sagemaker.CfnModelCard.MetricDataItemsProperty(
name="name",
type="type",
value=value,
# the properties below are optional
notes="notes",
x_axis_name=["xAxisName"],
y_axis_name=["yAxisName"]
)
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.*;
Object value;
MetricDataItemsProperty metricDataItemsProperty = MetricDataItemsProperty.builder()
.name("name")
.type("type")
.value(value)
// the properties below are optional
.notes("notes")
.xAxisName(List.of("xAxisName"))
.yAxisName(List.of("yAxisName"))
.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 value;
var metricDataItemsProperty = new MetricDataItemsProperty {
Name = "name",
Type = "type",
Value = value,
// the properties below are optional
Notes = "notes",
XAxisName = new [] { "xAxisName" },
YAxisName = new [] { "yAxisName" }
};
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"
var value interface{}
metricDataItemsProperty := &MetricDataItemsProperty{
Name: jsii.String("name"),
Type: jsii.String("type"),
Value: value,
// the properties below are optional
Notes: jsii.String("notes"),
XAxisName: []*string{
jsii.String("xAxisName"),
},
YAxisName: []*string{
jsii.String("yAxisName"),
},
}