Class: AWSCDK::Sagemaker::CfnModelPackage::SourceAlgorithmProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::SourceAlgorithmProperty
- Defined in:
- sagemaker/cfn_model_package.rb
Overview
Specifies an algorithm that was used to create the model package.
The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
Instance Attribute Summary collapse
-
#algorithm_name ⇒ String
readonly
The name of an algorithm that was used to create the model package.
-
#model_data_url ⇒ String?
readonly
The Amazon S3 path where the model artifacts, which result from model training, are stored.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(algorithm_name:, model_data_url: nil) ⇒ SourceAlgorithmProperty
constructor
A new instance of SourceAlgorithmProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(algorithm_name:, model_data_url: nil) ⇒ SourceAlgorithmProperty
Returns a new instance of SourceAlgorithmProperty.
2350 2351 2352 2353 2354 2355 |
# File 'sagemaker/cfn_model_package.rb', line 2350 def initialize(algorithm_name:, model_data_url: nil) @algorithm_name = algorithm_name Jsii::Type.check_type(@algorithm_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "algorithmName") @model_data_url = model_data_url Jsii::Type.check_type(@model_data_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelDataUrl") unless @model_data_url.nil? end |
Instance Attribute Details
#algorithm_name ⇒ String (readonly)
The name of an algorithm that was used to create the model package.
The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
2363 2364 2365 |
# File 'sagemaker/cfn_model_package.rb', line 2363 def algorithm_name @algorithm_name end |
#model_data_url ⇒ String? (readonly)
The Amazon S3 path where the model artifacts, which result from model training, are stored.
This path must point to a single gzip compressed tar archive ( .tar.gz suffix).
The model artifacts must be in an S3 bucket that is in the same AWS region as the algorithm.
2372 2373 2374 |
# File 'sagemaker/cfn_model_package.rb', line 2372 def model_data_url @model_data_url end |
Class Method Details
.jsii_properties ⇒ Object
2374 2375 2376 2377 2378 2379 |
# File 'sagemaker/cfn_model_package.rb', line 2374 def self.jsii_properties { :algorithm_name => "algorithmName", :model_data_url => "modelDataUrl", } end |
Instance Method Details
#to_jsii ⇒ Object
2381 2382 2383 2384 2385 2386 2387 2388 |
# File 'sagemaker/cfn_model_package.rb', line 2381 def to_jsii result = {} result.merge!({ "algorithmName" => @algorithm_name, "modelDataUrl" => @model_data_url, }) result.compact end |