Class: AWSCDK::Sagemaker::CfnModelCard::MetricDataItemsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::MetricDataItemsProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
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 .
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #notes ⇒ String? readonly
- #type ⇒ String readonly
- #value ⇒ Object readonly
- #x_axis_name ⇒ Array<String>? readonly
- #y_axis_name ⇒ Array<String>? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, type:, value:, notes: nil, x_axis_name: nil, y_axis_name: nil) ⇒ MetricDataItemsProperty
constructor
A new instance of MetricDataItemsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, type:, value:, notes: nil, x_axis_name: nil, y_axis_name: nil) ⇒ MetricDataItemsProperty
Returns a new instance of MetricDataItemsProperty.
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 |
# File 'sagemaker/cfn_model_card.rb', line 1263 def initialize(name:, type:, value:, notes: nil, x_axis_name: nil, y_axis_name: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "value") @notes = notes Jsii::Type.check_type(@notes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "notes") unless @notes.nil? @x_axis_name = x_axis_name Jsii::Type.check_type(@x_axis_name, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "xAxisName") unless @x_axis_name.nil? @y_axis_name = y_axis_name Jsii::Type.check_type(@y_axis_name, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "yAxisName") unless @y_axis_name.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
1280 1281 1282 |
# File 'sagemaker/cfn_model_card.rb', line 1280 def name @name end |
#notes ⇒ String? (readonly)
1289 1290 1291 |
# File 'sagemaker/cfn_model_card.rb', line 1289 def notes @notes end |
#type ⇒ String (readonly)
1283 1284 1285 |
# File 'sagemaker/cfn_model_card.rb', line 1283 def type @type end |
#value ⇒ Object (readonly)
1286 1287 1288 |
# File 'sagemaker/cfn_model_card.rb', line 1286 def value @value end |
#x_axis_name ⇒ Array<String>? (readonly)
1292 1293 1294 |
# File 'sagemaker/cfn_model_card.rb', line 1292 def x_axis_name @x_axis_name end |
#y_axis_name ⇒ Array<String>? (readonly)
1295 1296 1297 |
# File 'sagemaker/cfn_model_card.rb', line 1295 def y_axis_name @y_axis_name end |
Class Method Details
.jsii_properties ⇒ Object
1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'sagemaker/cfn_model_card.rb', line 1297 def self.jsii_properties { :name => "name", :type => "type", :value => "value", :notes => "notes", :x_axis_name => "xAxisName", :y_axis_name => "yAxisName", } end |
Instance Method Details
#to_jsii ⇒ Object
1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 |
# File 'sagemaker/cfn_model_card.rb', line 1308 def to_jsii result = {} result.merge!({ "name" => @name, "type" => @type, "value" => @value, "notes" => @notes, "xAxisName" => @x_axis_name, "yAxisName" => @y_axis_name, }) result.compact end |