Class: AWSCDK::Sagemaker::CfnModelCard::TrainingHyperParameterProperty

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

Overview

A hyper parameter that was configured in training the model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ TrainingHyperParameterProperty

Returns a new instance of TrainingHyperParameterProperty.

Parameters:

  • name (String)

    The name of the hyper parameter.

  • value (String)

    The value specified for the hyper parameter.



1898
1899
1900
1901
1902
1903
# File 'sagemaker/cfn_model_card.rb', line 1898

def initialize(name:, value:)
  @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("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#nameString (readonly)

The name of the hyper parameter.



1909
1910
1911
# File 'sagemaker/cfn_model_card.rb', line 1909

def name
  @name
end

#valueString (readonly)

The value specified for the hyper parameter.



1914
1915
1916
# File 'sagemaker/cfn_model_card.rb', line 1914

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1916
1917
1918
1919
1920
1921
# File 'sagemaker/cfn_model_card.rb', line 1916

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1923
1924
1925
1926
1927
1928
1929
1930
# File 'sagemaker/cfn_model_card.rb', line 1923

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "value" => @value,
  })
  result.compact
end