Class: AWSCDK::Personalize::CfnSolution::SolutionConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Personalize::CfnSolution::SolutionConfigProperty
- Defined in:
- personalize/cfn_solution.rb
Overview
Describes the configuration properties for the solution.
Instance Attribute Summary collapse
-
#algorithm_hyper_parameters ⇒ AWSCDK::IResolvable, ...
readonly
Lists the algorithm hyperparameters and their values.
-
#auto_ml_config ⇒ Object?
readonly
The AutoMLConfig object containing a list of recipes to search when AutoML is performed.
-
#event_value_threshold ⇒ String?
readonly
Only events with a value greater than or equal to this threshold are used for training a model.
-
#feature_transformation_parameters ⇒ AWSCDK::IResolvable, ...
readonly
Lists the feature transformation parameters.
-
#hpo_config ⇒ Object?
readonly
Describes the properties for hyperparameter optimization (HPO).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(algorithm_hyper_parameters: nil, auto_ml_config: nil, event_value_threshold: nil, feature_transformation_parameters: nil, hpo_config: nil) ⇒ SolutionConfigProperty
constructor
A new instance of SolutionConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(algorithm_hyper_parameters: nil, auto_ml_config: nil, event_value_threshold: nil, feature_transformation_parameters: nil, hpo_config: nil) ⇒ SolutionConfigProperty
Returns a new instance of SolutionConfigProperty.
1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 |
# File 'personalize/cfn_solution.rb', line 1002 def initialize(algorithm_hyper_parameters: nil, auto_ml_config: nil, event_value_threshold: nil, feature_transformation_parameters: nil, hpo_config: nil) @algorithm_hyper_parameters = algorithm_hyper_parameters Jsii::Type.check_type(@algorithm_hyper_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "algorithmHyperParameters") unless @algorithm_hyper_parameters.nil? @auto_ml_config = auto_ml_config Jsii::Type.check_type(@auto_ml_config, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "autoMlConfig") unless @auto_ml_config.nil? @event_value_threshold = event_value_threshold Jsii::Type.check_type(@event_value_threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventValueThreshold") unless @event_value_threshold.nil? @feature_transformation_parameters = feature_transformation_parameters Jsii::Type.check_type(@feature_transformation_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "featureTransformationParameters") unless @feature_transformation_parameters.nil? @hpo_config = hpo_config Jsii::Type.check_type(@hpo_config, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "hpoConfig") unless @hpo_config.nil? end |
Instance Attribute Details
#algorithm_hyper_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
Lists the algorithm hyperparameters and their values.
1019 1020 1021 |
# File 'personalize/cfn_solution.rb', line 1019 def algorithm_hyper_parameters @algorithm_hyper_parameters end |
#auto_ml_config ⇒ Object? (readonly)
The AutoMLConfig object containing a list of recipes to search when AutoML is performed.
1024 1025 1026 |
# File 'personalize/cfn_solution.rb', line 1024 def auto_ml_config @auto_ml_config end |
#event_value_threshold ⇒ String? (readonly)
Only events with a value greater than or equal to this threshold are used for training a model.
1029 1030 1031 |
# File 'personalize/cfn_solution.rb', line 1029 def event_value_threshold @event_value_threshold end |
#feature_transformation_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
Lists the feature transformation parameters.
1034 1035 1036 |
# File 'personalize/cfn_solution.rb', line 1034 def feature_transformation_parameters @feature_transformation_parameters end |
#hpo_config ⇒ Object? (readonly)
Describes the properties for hyperparameter optimization (HPO).
1039 1040 1041 |
# File 'personalize/cfn_solution.rb', line 1039 def hpo_config @hpo_config end |
Class Method Details
.jsii_properties ⇒ Object
1041 1042 1043 1044 1045 1046 1047 1048 1049 |
# File 'personalize/cfn_solution.rb', line 1041 def self.jsii_properties { :algorithm_hyper_parameters => "algorithmHyperParameters", :auto_ml_config => "autoMlConfig", :event_value_threshold => "eventValueThreshold", :feature_transformation_parameters => "featureTransformationParameters", :hpo_config => "hpoConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 |
# File 'personalize/cfn_solution.rb', line 1051 def to_jsii result = {} result.merge!({ "algorithmHyperParameters" => @algorithm_hyper_parameters, "autoMlConfig" => @auto_ml_config, "eventValueThreshold" => @event_value_threshold, "featureTransformationParameters" => @feature_transformation_parameters, "hpoConfig" => @hpo_config, }) result.compact end |