aws-cdk-lib.aws_sagemaker.CfnModelCard.MetricDataItemsProperty

interface MetricDataItemsProperty

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnModelCard.MetricDataItemsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnModelCard_MetricDataItemsProperty
Javasoftware.amazon.awscdk.services.sagemaker.CfnModelCard.MetricDataItemsProperty
Pythonaws_cdk.aws_sagemaker.CfnModelCard.MetricDataItemsProperty
TypeScript aws-cdk-lib » aws_sagemaker » CfnModelCard » MetricDataItemsProperty

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 .

Example

// 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'],
};

Properties

NameTypeDescription
namestringThe names of the metrics.
typestringYou must specify one of the following data types:.
valueanyThe datatype of the metric.
notes?stringAny notes to add to the metric.
xAxisName?string[]The name of the x axis.
yAxisName?string[]The name of the y axis.

name

Type: string

The names of the metrics.


type

Type: string

You must specify one of the following data types:.

  • Bar Chart bar_char
  • Boolean boolean
  • Linear Graph linear_graph
  • Matrix matrix
  • Number number
  • String string

value

Type: any

The datatype of the metric.

The metric's value must be compatible with the metric's type .


notes?

Type: string (optional)

Any notes to add to the metric.


xAxisName?

Type: string[] (optional)

The name of the x axis.


yAxisName?

Type: string[] (optional)

The name of the y axis.