Class CfnModelPackagePropsMixin.SourceAlgorithmProperty
Specifies an algorithm that was used to create the model package.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnModelPackagePropsMixin.SourceAlgorithmProperty : CfnModelPackagePropsMixin.ISourceAlgorithmProperty
Syntax (vb)
Public Class CfnModelPackagePropsMixin.SourceAlgorithmProperty Implements CfnModelPackagePropsMixin.ISourceAlgorithmProperty
Remarks
The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins;
var sourceAlgorithmProperty = new SourceAlgorithmProperty {
AlgorithmName = "algorithmName",
ModelDataUrl = "modelDataUrl"
};
Synopsis
Constructors
| SourceAlgorithmProperty() | Specifies an algorithm that was used to create the model package. |
Properties
| AlgorithmName | The name of an algorithm that was used to create the model package. |
| ModelDataUrl | The Amazon S3 path where the model artifacts, which result from model training, are stored. |
Constructors
SourceAlgorithmProperty()
Specifies an algorithm that was used to create the model package.
public SourceAlgorithmProperty()
Remarks
The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins;
var sourceAlgorithmProperty = new SourceAlgorithmProperty {
AlgorithmName = "algorithmName",
ModelDataUrl = "modelDataUrl"
};
Properties
AlgorithmName
The name of an algorithm that was used to create the model package.
public string? AlgorithmName { get; set; }
Property Value
Remarks
The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.
ModelDataUrl
The Amazon S3 path where the model artifacts, which result from model training, are stored.
public string? ModelDataUrl { get; set; }
Property Value
Remarks
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.