Class: AWSCDK::Sagemaker::CfnModelBiasJobDefinition::ModelBiasJobInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelBiasJobDefinition::ModelBiasJobInputProperty
- Defined in:
- sagemaker/cfn_model_bias_job_definition.rb
Overview
Inputs for the model bias job.
Instance Attribute Summary collapse
-
#batch_transform_input ⇒ AWSCDK::IResolvable, ...
readonly
Input object for the batch transform job.
-
#endpoint_input ⇒ AWSCDK::IResolvable, ...
readonly
Input object for the endpoint.
-
#ground_truth_s3_input ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelBiasJobDefinition::MonitoringGroundTruthS3InputProperty
readonly
Location of ground truth labels to use in model bias job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ground_truth_s3_input:, batch_transform_input: nil, endpoint_input: nil) ⇒ ModelBiasJobInputProperty
constructor
A new instance of ModelBiasJobInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ground_truth_s3_input:, batch_transform_input: nil, endpoint_input: nil) ⇒ ModelBiasJobInputProperty
Returns a new instance of ModelBiasJobInputProperty.
1246 1247 1248 1249 1250 1251 1252 1253 |
# File 'sagemaker/cfn_model_bias_job_definition.rb', line 1246 def initialize(ground_truth_s3_input:, batch_transform_input: nil, endpoint_input: nil) @ground_truth_s3_input = ground_truth_s3_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelBiasJobDefinition::MonitoringGroundTruthS3InputProperty.new(**ground_truth_s3_input.transform_keys(&:to_sym)) : ground_truth_s3_input Jsii::Type.check_type(@ground_truth_s3_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxCaWFzSm9iRGVmaW5pdGlvbi5Nb25pdG9yaW5nR3JvdW5kVHJ1dGhTM0lucHV0UHJvcGVydHkifV19fQ==")), "groundTruthS3Input") @batch_transform_input = batch_transform_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelBiasJobDefinition::BatchTransformInputProperty.new(**batch_transform_input.transform_keys(&:to_sym)) : batch_transform_input Jsii::Type.check_type(@batch_transform_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxCaWFzSm9iRGVmaW5pdGlvbi5CYXRjaFRyYW5zZm9ybUlucHV0UHJvcGVydHkifV19fQ==")), "batchTransformInput") unless @batch_transform_input.nil? @endpoint_input = endpoint_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelBiasJobDefinition::EndpointInputProperty.new(**endpoint_input.transform_keys(&:to_sym)) : endpoint_input Jsii::Type.check_type(@endpoint_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxCaWFzSm9iRGVmaW5pdGlvbi5FbmRwb2ludElucHV0UHJvcGVydHkifV19fQ==")), "endpointInput") unless @endpoint_input.nil? end |
Instance Attribute Details
#batch_transform_input ⇒ AWSCDK::IResolvable, ... (readonly)
Input object for the batch transform job.
1264 1265 1266 |
# File 'sagemaker/cfn_model_bias_job_definition.rb', line 1264 def batch_transform_input @batch_transform_input end |
#endpoint_input ⇒ AWSCDK::IResolvable, ... (readonly)
Input object for the endpoint.
1269 1270 1271 |
# File 'sagemaker/cfn_model_bias_job_definition.rb', line 1269 def endpoint_input @endpoint_input end |
#ground_truth_s3_input ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelBiasJobDefinition::MonitoringGroundTruthS3InputProperty (readonly)
Location of ground truth labels to use in model bias job.
1259 1260 1261 |
# File 'sagemaker/cfn_model_bias_job_definition.rb', line 1259 def ground_truth_s3_input @ground_truth_s3_input end |
Class Method Details
.jsii_properties ⇒ Object
1271 1272 1273 1274 1275 1276 1277 |
# File 'sagemaker/cfn_model_bias_job_definition.rb', line 1271 def self.jsii_properties { :ground_truth_s3_input => "groundTruthS3Input", :batch_transform_input => "batchTransformInput", :endpoint_input => "endpointInput", } end |
Instance Method Details
#to_jsii ⇒ Object
1279 1280 1281 1282 1283 1284 1285 1286 1287 |
# File 'sagemaker/cfn_model_bias_job_definition.rb', line 1279 def to_jsii result = {} result.merge!({ "groundTruthS3Input" => @ground_truth_s3_input, "batchTransformInput" => @batch_transform_input, "endpointInput" => @endpoint_input, }) result.compact end |