Class: AWSCDK::Sagemaker::CfnModelQualityJobDefinition::BatchTransformInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelQualityJobDefinition::BatchTransformInputProperty
- Defined in:
- sagemaker/cfn_model_quality_job_definition.rb
Overview
Input object for the batch transform job.
Instance Attribute Summary collapse
-
#data_captured_destination_s3_uri ⇒ String
readonly
The Amazon S3 location being used to capture the data.
-
#dataset_format ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelQualityJobDefinition::DatasetFormatProperty
readonly
The dataset format for your batch transform job.
-
#end_time_offset ⇒ String?
readonly
If specified, monitoring jobs subtract this time from the end time.
-
#inference_attribute ⇒ String?
readonly
The attribute of the input data that represents the ground truth label.
-
#local_path ⇒ String
readonly
Path to the filesystem where the batch transform data is available to the container.
-
#probability_attribute ⇒ String?
readonly
In a classification problem, the attribute that represents the class probability.
-
#probability_threshold_attribute ⇒ Numeric?
readonly
The threshold for the class probability to be evaluated as a positive result.
-
#s3_data_distribution_type ⇒ String?
readonly
Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key.
-
#s3_input_mode ⇒ String?
readonly
Whether the
PipeorFileis used as the input mode for transferring data for the monitoring job. -
#start_time_offset ⇒ String?
readonly
If specified, monitoring jobs substract this time from the start time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data_captured_destination_s3_uri:, dataset_format:, local_path:, end_time_offset: nil, inference_attribute: nil, probability_attribute: nil, probability_threshold_attribute: nil, s3_data_distribution_type: nil, s3_input_mode: nil, start_time_offset: nil) ⇒ BatchTransformInputProperty
constructor
A new instance of BatchTransformInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(data_captured_destination_s3_uri:, dataset_format:, local_path:, end_time_offset: nil, inference_attribute: nil, probability_attribute: nil, probability_threshold_attribute: nil, s3_data_distribution_type: nil, s3_input_mode: nil, start_time_offset: nil) ⇒ BatchTransformInputProperty
Returns a new instance of BatchTransformInputProperty.
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 666 def initialize(data_captured_destination_s3_uri:, dataset_format:, local_path:, end_time_offset: nil, inference_attribute: nil, probability_attribute: nil, probability_threshold_attribute: nil, s3_data_distribution_type: nil, s3_input_mode: nil, start_time_offset: nil) @data_captured_destination_s3_uri = data_captured_destination_s3_uri Jsii::Type.check_type(@data_captured_destination_s3_uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataCapturedDestinationS3Uri") @dataset_format = dataset_format.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelQualityJobDefinition::DatasetFormatProperty.new(**dataset_format.transform_keys(&:to_sym)) : dataset_format Jsii::Type.check_type(@dataset_format, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxRdWFsaXR5Sm9iRGVmaW5pdGlvbi5EYXRhc2V0Rm9ybWF0UHJvcGVydHkifV19fQ==")), "datasetFormat") @local_path = local_path Jsii::Type.check_type(@local_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "localPath") @end_time_offset = end_time_offset Jsii::Type.check_type(@end_time_offset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endTimeOffset") unless @end_time_offset.nil? @inference_attribute = inference_attribute Jsii::Type.check_type(@inference_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inferenceAttribute") unless @inference_attribute.nil? @probability_attribute = probability_attribute Jsii::Type.check_type(@probability_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "probabilityAttribute") unless @probability_attribute.nil? @probability_threshold_attribute = probability_threshold_attribute Jsii::Type.check_type(@probability_threshold_attribute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "probabilityThresholdAttribute") unless @probability_threshold_attribute.nil? @s3_data_distribution_type = s3_data_distribution_type Jsii::Type.check_type(@s3_data_distribution_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3DataDistributionType") unless @s3_data_distribution_type.nil? @s3_input_mode = s3_input_mode Jsii::Type.check_type(@s3_input_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3InputMode") unless @s3_input_mode.nil? @start_time_offset = start_time_offset Jsii::Type.check_type(@start_time_offset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startTimeOffset") unless @start_time_offset.nil? end |
Instance Attribute Details
#data_captured_destination_s3_uri ⇒ String (readonly)
The Amazon S3 location being used to capture the data.
693 694 695 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 693 def data_captured_destination_s3_uri @data_captured_destination_s3_uri end |
#dataset_format ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelQualityJobDefinition::DatasetFormatProperty (readonly)
The dataset format for your batch transform job.
698 699 700 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 698 def dataset_format @dataset_format end |
#end_time_offset ⇒ String? (readonly)
If specified, monitoring jobs subtract this time from the end time.
For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .
710 711 712 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 710 def end_time_offset @end_time_offset end |
#inference_attribute ⇒ String? (readonly)
The attribute of the input data that represents the ground truth label.
715 716 717 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 715 def inference_attribute @inference_attribute end |
#local_path ⇒ String (readonly)
Path to the filesystem where the batch transform data is available to the container.
703 704 705 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 703 def local_path @local_path end |
#probability_attribute ⇒ String? (readonly)
In a classification problem, the attribute that represents the class probability.
720 721 722 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 720 def probability_attribute @probability_attribute end |
#probability_threshold_attribute ⇒ Numeric? (readonly)
The threshold for the class probability to be evaluated as a positive result.
725 726 727 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 725 def probability_threshold_attribute @probability_threshold_attribute end |
#s3_data_distribution_type ⇒ String? (readonly)
Whether input data distributed in Amazon S3 is fully replicated or sharded by an S3 key.
Defaults to FullyReplicated
732 733 734 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 732 def s3_data_distribution_type @s3_data_distribution_type end |
#s3_input_mode ⇒ String? (readonly)
Whether the Pipe or File is used as the input mode for transferring data for the monitoring job.
Pipe mode is recommended for large datasets. File mode is useful for small files that fit in memory. Defaults to File .
739 740 741 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 739 def s3_input_mode @s3_input_mode end |
#start_time_offset ⇒ String? (readonly)
If specified, monitoring jobs substract this time from the start time.
For information about using offsets for scheduling monitoring jobs, see Schedule Model Quality Monitoring Jobs .
746 747 748 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 746 def start_time_offset @start_time_offset end |
Class Method Details
.jsii_properties ⇒ Object
748 749 750 751 752 753 754 755 756 757 758 759 760 761 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 748 def self.jsii_properties { :data_captured_destination_s3_uri => "dataCapturedDestinationS3Uri", :dataset_format => "datasetFormat", :local_path => "localPath", :end_time_offset => "endTimeOffset", :inference_attribute => "inferenceAttribute", :probability_attribute => "probabilityAttribute", :probability_threshold_attribute => "probabilityThresholdAttribute", :s3_data_distribution_type => "s3DataDistributionType", :s3_input_mode => "s3InputMode", :start_time_offset => "startTimeOffset", } end |
Instance Method Details
#to_jsii ⇒ Object
763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 |
# File 'sagemaker/cfn_model_quality_job_definition.rb', line 763 def to_jsii result = {} result.merge!({ "dataCapturedDestinationS3Uri" => @data_captured_destination_s3_uri, "datasetFormat" => @dataset_format, "localPath" => @local_path, "endTimeOffset" => @end_time_offset, "inferenceAttribute" => @inference_attribute, "probabilityAttribute" => @probability_attribute, "probabilityThresholdAttribute" => @probability_threshold_attribute, "s3DataDistributionType" => @s3_data_distribution_type, "s3InputMode" => @s3_input_mode, "startTimeOffset" => @start_time_offset, }) result.compact end |