Class: AWSCDK::Sagemaker::CfnModelCard::TrainingMetricProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::TrainingMetricProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
A result from a SageMaker AI training job.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the result from the SageMaker AI training job.
-
#notes ⇒ String?
readonly
Any additional notes describing the result of the training job.
-
#value ⇒ Numeric
readonly
The value of a result from the SageMaker AI training job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:, notes: nil) ⇒ TrainingMetricProperty
constructor
A new instance of TrainingMetricProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:, notes: nil) ⇒ TrainingMetricProperty
Returns a new instance of TrainingMetricProperty.
2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'sagemaker/cfn_model_card.rb', line 2035 def initialize(name:, value:, notes: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value") @notes = notes Jsii::Type.check_type(@notes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "notes") unless @notes.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the result from the SageMaker AI training job.
2048 2049 2050 |
# File 'sagemaker/cfn_model_card.rb', line 2048 def name @name end |
#notes ⇒ String? (readonly)
Any additional notes describing the result of the training job.
2058 2059 2060 |
# File 'sagemaker/cfn_model_card.rb', line 2058 def notes @notes end |
#value ⇒ Numeric (readonly)
The value of a result from the SageMaker AI training job.
2053 2054 2055 |
# File 'sagemaker/cfn_model_card.rb', line 2053 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
2060 2061 2062 2063 2064 2065 2066 |
# File 'sagemaker/cfn_model_card.rb', line 2060 def self.jsii_properties { :name => "name", :value => "value", :notes => "notes", } end |
Instance Method Details
#to_jsii ⇒ Object
2068 2069 2070 2071 2072 2073 2074 2075 2076 |
# File 'sagemaker/cfn_model_card.rb', line 2068 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, "notes" => @notes, }) result.compact end |