Class: AWSCDK::Sagemaker::CfnModelCard::TrainingMetricProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_model_card.rb

Overview

A result from a SageMaker AI training job.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:, notes: nil) ⇒ TrainingMetricProperty

Returns a new instance of TrainingMetricProperty.

Parameters:

  • name (String)

    The name of the result from the SageMaker AI training job.

  • value (Numeric)

    The value of a result from the SageMaker AI training job.

  • notes (String, nil) (defaults to: nil)

    Any additional notes describing the result of the training job.



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

#nameString (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

#notesString? (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

#valueNumeric (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_propertiesObject



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_jsiiObject



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