Class: AWSCDK::Sagemaker::CfnModelPackage::DriftCheckBaselinesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::DriftCheckBaselinesProperty
- Defined in:
- sagemaker/cfn_model_package.rb
Overview
Represents the drift check baselines that can be used when the model monitor is set using the model package.
Instance Attribute Summary collapse
-
#bias ⇒ AWSCDK::IResolvable, ...
readonly
Represents the drift check bias baselines that can be used when the model monitor is set using the model package.
-
#explainability ⇒ AWSCDK::IResolvable, ...
readonly
Represents the drift check explainability baselines that can be used when the model monitor is set using the model package.
-
#model_data_quality ⇒ AWSCDK::IResolvable, ...
readonly
Represents the drift check model data quality baselines that can be used when the model monitor is set using the model package.
-
#model_quality ⇒ AWSCDK::IResolvable, ...
readonly
Represents the drift check model quality baselines that can be used when the model monitor is set using the model package.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bias: nil, explainability: nil, model_data_quality: nil, model_quality: nil) ⇒ DriftCheckBaselinesProperty
constructor
A new instance of DriftCheckBaselinesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bias: nil, explainability: nil, model_data_quality: nil, model_quality: nil) ⇒ DriftCheckBaselinesProperty
Returns a new instance of DriftCheckBaselinesProperty.
1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 |
# File 'sagemaker/cfn_model_package.rb', line 1091 def initialize(bias: nil, explainability: nil, model_data_quality: nil, model_quality: nil) @bias = bias.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::DriftCheckBiasProperty.new(**bias.transform_keys(&:to_sym)) : bias Jsii::Type.check_type(@bias, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLkRyaWZ0Q2hlY2tCaWFzUHJvcGVydHkifV19fQ==")), "bias") unless @bias.nil? @explainability = explainability.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::DriftCheckExplainabilityProperty.new(**explainability.transform_keys(&:to_sym)) : explainability Jsii::Type.check_type(@explainability, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLkRyaWZ0Q2hlY2tFeHBsYWluYWJpbGl0eVByb3BlcnR5In1dfX0=")), "explainability") unless @explainability.nil? @model_data_quality = model_data_quality.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::DriftCheckModelDataQualityProperty.new(**model_data_quality.transform_keys(&:to_sym)) : model_data_quality Jsii::Type.check_type(@model_data_quality, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLkRyaWZ0Q2hlY2tNb2RlbERhdGFRdWFsaXR5UHJvcGVydHkifV19fQ==")), "modelDataQuality") unless @model_data_quality.nil? @model_quality = model_quality.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::DriftCheckModelQualityProperty.new(**model_quality.transform_keys(&:to_sym)) : model_quality Jsii::Type.check_type(@model_quality, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLkRyaWZ0Q2hlY2tNb2RlbFF1YWxpdHlQcm9wZXJ0eSJ9XX19")), "modelQuality") unless @model_quality.nil? end |
Instance Attribute Details
#bias ⇒ AWSCDK::IResolvable, ... (readonly)
Represents the drift check bias baselines that can be used when the model monitor is set using the model package.
1106 1107 1108 |
# File 'sagemaker/cfn_model_package.rb', line 1106 def bias @bias end |
#explainability ⇒ AWSCDK::IResolvable, ... (readonly)
Represents the drift check explainability baselines that can be used when the model monitor is set using the model package.
1111 1112 1113 |
# File 'sagemaker/cfn_model_package.rb', line 1111 def explainability @explainability end |
#model_data_quality ⇒ AWSCDK::IResolvable, ... (readonly)
Represents the drift check model data quality baselines that can be used when the model monitor is set using the model package.
1116 1117 1118 |
# File 'sagemaker/cfn_model_package.rb', line 1116 def model_data_quality @model_data_quality end |
#model_quality ⇒ AWSCDK::IResolvable, ... (readonly)
Represents the drift check model quality baselines that can be used when the model monitor is set using the model package.
1121 1122 1123 |
# File 'sagemaker/cfn_model_package.rb', line 1121 def model_quality @model_quality end |
Class Method Details
.jsii_properties ⇒ Object
1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'sagemaker/cfn_model_package.rb', line 1123 def self.jsii_properties { :bias => "bias", :explainability => "explainability", :model_data_quality => "modelDataQuality", :model_quality => "modelQuality", } end |
Instance Method Details
#to_jsii ⇒ Object
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 |
# File 'sagemaker/cfn_model_package.rb', line 1132 def to_jsii result = {} result.merge!({ "bias" => @bias, "explainability" => @explainability, "modelDataQuality" => @model_data_quality, "modelQuality" => @model_quality, }) result.compact end |