Class: AWSCDK::Sagemaker::CfnModelCard::TrainingHyperParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelCard::TrainingHyperParameterProperty
- Defined in:
- sagemaker/cfn_model_card.rb
Overview
A hyper parameter that was configured in training the model.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the hyper parameter.
-
#value ⇒ String
readonly
The value specified for the hyper parameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ TrainingHyperParameterProperty
constructor
A new instance of TrainingHyperParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ TrainingHyperParameterProperty
Returns a new instance of TrainingHyperParameterProperty.
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
#name ⇒ String (readonly)
The name of the hyper parameter.
1909 1910 1911 |
# File 'sagemaker/cfn_model_card.rb', line 1909 def name @name end |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |