Class: AWSCDK::Sagemaker::CfnModelPackage::DriftCheckModelQualityProperty

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

Overview

Represents the drift check model 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) ⇒ DriftCheckModelQualityProperty

Returns a new instance of DriftCheckModelQualityProperty.

Parameters:



1291
1292
1293
1294
1295
1296
# File 'sagemaker/cfn_model_package.rb', line 1291

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 quality constraints.



1302
1303
1304
# File 'sagemaker/cfn_model_package.rb', line 1302

def constraints
  @constraints
end

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

The drift check model quality statistics.



1307
1308
1309
# File 'sagemaker/cfn_model_package.rb', line 1307

def statistics
  @statistics
end

Class Method Details

.jsii_propertiesObject



1309
1310
1311
1312
1313
1314
# File 'sagemaker/cfn_model_package.rb', line 1309

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

Instance Method Details

#to_jsiiObject



1316
1317
1318
1319
1320
1321
1322
1323
# File 'sagemaker/cfn_model_package.rb', line 1316

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