Skip to main content

algorithms

Creates, updates, deletes, gets or lists an algorithms resource.

Overview

Namealgorithms
TypeResource
Idaws.sagemaker.algorithms

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
algorithm_arnstringThe Amazon Resource Name (ARN) of the algorithm. (pattern: <code>arn:aws[a-z-]*:sagemaker:[a-z0-9-]{9,16}:[0-9]{12}:algorithm/[\S]{1,2048}</code>)
algorithm_descriptionstringA brief summary about the algorithm. (pattern: <code>[\p{L}\p{M}\p{Z}\p{S}\p{N}\p{P}]*</code>)
algorithm_namestringThe name of the algorithm being described. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
algorithm_statusstringThe current status of the algorithm. (Pending, InProgress, Completed, Failed, Deleting)
algorithm_status_detailsobjectDetails about the current status of the algorithm.
certify_for_marketplacebooleanWhether the algorithm is certified to be listed in Amazon Web Services Marketplace.
creation_timestring (date-time)A timestamp specifying when the algorithm was created.
inference_specificationobjectDetails about inference jobs that the algorithm runs.
product_idstringThe product identifier of the algorithm. (pattern: <code>[a-zA-Z0-9](-[a-zA-Z0-9])</code>)
training_specificationobjectDetails about training jobs run by this algorithm.
validation_specificationobjectDetails about configurations for one or more training jobs that SageMaker runs to test the algorithm.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_algorithmselectregionReturns a description of the specified algorithm that is in your account.
list_algorithmsselectregionLists the machine learning algorithms that have been created.
create_algorithminsertregion, AlgorithmName, TrainingSpecificationCreate a machine learning algorithm that you can use in SageMaker and list in the Amazon Web Services Marketplace.
delete_algorithmdeleteregionRemoves the specified algorithm from your account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a description of the specified algorithm that is in your account.

SELECT
algorithm_arn,
algorithm_description,
algorithm_name,
algorithm_status,
algorithm_status_details,
certify_for_marketplace,
creation_time,
inference_specification,
product_id,
training_specification,
validation_specification
FROM aws.sagemaker.algorithms
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create a machine learning algorithm that you can use in SageMaker and list in the Amazon Web Services Marketplace.

INSERT INTO aws.sagemaker.algorithms (
AlgorithmName,
AlgorithmDescription,
TrainingSpecification,
InferenceSpecification,
ValidationSpecification,
CertifyForMarketplace,
Tags,
region
)
SELECT
'{{ AlgorithmName }}' /* required */,
'{{ AlgorithmDescription }}',
'{{ TrainingSpecification }}' /* required */,
'{{ InferenceSpecification }}',
'{{ ValidationSpecification }}',
{{ CertifyForMarketplace }},
'{{ Tags }}',
'{{ region }}'
RETURNING
algorithm_arn
;

DELETE examples

Removes the specified algorithm from your account.

DELETE FROM aws.sagemaker.algorithms
WHERE region = '{{ region }}' --required
;