Class: AWSCDK::Sagemaker::CfnModelPackage::DriftCheckModelDataQualityProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_model_package.rb

Overview

Represents the drift check data quality baselines that can be used when the model monitor is set using the model package.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(constraints: nil, statistics: nil) ⇒ DriftCheckModelDataQualityProperty

Returns a new instance of DriftCheckModelDataQualityProperty.

Parameters:



1248
1249
1250
1251
1252
1253
# File 'sagemaker/cfn_model_package.rb', line 1248

def initialize(constraints: nil, statistics: nil)
  @constraints = constraints.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::MetricsSourceProperty.new(**constraints.transform_keys(&:to_sym)) : constraints
  Jsii::Type.check_type(@constraints, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLk1ldHJpY3NTb3VyY2VQcm9wZXJ0eSJ9XX19")), "constraints") unless @constraints.nil?
  @statistics = statistics.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::MetricsSourceProperty.new(**statistics.transform_keys(&:to_sym)) : statistics
  Jsii::Type.check_type(@statistics, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLk1ldHJpY3NTb3VyY2VQcm9wZXJ0eSJ9XX19")), "statistics") unless @statistics.nil?
end

Instance Attribute Details

#constraintsAWSCDK::IResolvable, ... (readonly)

The drift check model data quality constraints.



1259
1260
1261
# File 'sagemaker/cfn_model_package.rb', line 1259

def constraints
  @constraints
end

#statisticsAWSCDK::IResolvable, ... (readonly)

The drift check model data quality statistics.



1264
1265
1266
# File 'sagemaker/cfn_model_package.rb', line 1264

def statistics
  @statistics
end

Class Method Details

.jsii_propertiesObject



1266
1267
1268
1269
1270
1271
# File 'sagemaker/cfn_model_package.rb', line 1266

def self.jsii_properties
  {
    :constraints => "constraints",
    :statistics => "statistics",
  }
end

Instance Method Details

#to_jsiiObject



1273
1274
1275
1276
1277
1278
1279
1280
# File 'sagemaker/cfn_model_package.rb', line 1273

def to_jsii
  result = {}
  result.merge!({
    "constraints" => @constraints,
    "statistics" => @statistics,
  })
  result.compact
end