Class: AWSCDK::Sagemaker::CfnModelCard::MetricGroupProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::MetricGroupProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
A group of metric data that you use to initialize a metric group object.
Instance Attribute Summary collapse
-
#metric_data ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelCard::MetricDataItemsProperty>
readonly
A list of metric objects.
-
#name ⇒ String
readonly
The metric group name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metric_data:, name:) ⇒ MetricGroupProperty
constructor
A new instance of MetricGroupProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metric_data:, name:) ⇒ MetricGroupProperty
Returns a new instance of MetricGroupProperty.
1330 1331 1332 1333 1334 1335 |
# File 'sagemaker/cfn_model_card.rb', line 1330 def initialize(metric_data:, name:) @metric_data = metric_data Jsii::Type.check_type(@metric_data, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk1vZGVsQ2FyZC5NZXRyaWNEYXRhSXRlbXNQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "metricData") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") end |
Instance Attribute Details
#metric_data ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelCard::MetricDataItemsProperty> (readonly)
A list of metric objects. The MetricDataItems list can have one of the following values:.
bar_chart_metricmatrix_metricsimple_metriclinear_graph_metric
For more information about the metric schema, see the definition section of the model card JSON schema .
1348 1349 1350 |
# File 'sagemaker/cfn_model_card.rb', line 1348 def metric_data @metric_data end |
#name ⇒ String (readonly)
The metric group name.
1353 1354 1355 |
# File 'sagemaker/cfn_model_card.rb', line 1353 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1355 1356 1357 1358 1359 1360 |
# File 'sagemaker/cfn_model_card.rb', line 1355 def self.jsii_properties { :metric_data => "metricData", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
1362 1363 1364 1365 1366 1367 1368 1369 |
# File 'sagemaker/cfn_model_card.rb', line 1362 def to_jsii result = {} result.merge!({ "metricData" => @metric_data, "name" => @name, }) result.compact end |