create_algorithm
¶
create_algorithm(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
algorithm_name: Optional[EntityName] = None,
algorithm_description: Optional[EntityDescription] = None,
training_specification: Optional[TrainingSpecification] = None,
inference_specification: Optional[InferenceSpecification] = None,
validation_specification: Optional[AlgorithmValidationSpecification] = None,
certify_for_marketplace: Optional[CertifyForMarketplace] = None,
tags: Optional[TagList] = None,
) -> CreateAlgorithmOutput
Create a machine learning algorithm that you can use in SageMaker and list in the Amazon Web Services Marketplace.
Parameters:
-
algorithm_name(Optional[EntityName], default:None) –The name of the algorithm.
-
algorithm_description(Optional[EntityDescription], default:None) –A description of the algorithm.
-
training_specification(Optional[TrainingSpecification], default:None) –Specifies details about training jobs run by this algorithm, including the following:
-
The Amazon ECR path of the container and the version digest of the algorithm.
-
The hyperparameters that the algorithm supports.
-
The instance types that the algorithm supports for training.
-
Whether the algorithm supports distributed training.
-
The metrics that the algorithm emits to Amazon CloudWatch.
-
Which metrics that the algorithm emits can be used as the objective metric for hyperparameter tuning jobs.
-
The input channels that the algorithm supports for training data. For example, an algorithm might support
train,validation, andtestchannels.
-
-
inference_specification(Optional[InferenceSpecification], default:None) –Specifies details about inference jobs that the algorithm runs, including the following:
-
The Amazon ECR paths of containers that contain the inference code and model artifacts.
-
The instance types that the algorithm supports for transform jobs and real-time endpoints used for inference.
-
The input and output content formats that the algorithm supports for inference.
-
-
validation_specification(Optional[AlgorithmValidationSpecification], default:None) –Specifies configurations for one or more training jobs and that SageMaker runs to test the algorithm's training code and, optionally, one or more batch transform jobs that SageMaker runs to test the algorithm's inference code.
-
certify_for_marketplace(Optional[CertifyForMarketplace], default:None) –Whether to certify the algorithm so that it can be listed in Amazon Web Services Marketplace.
-
tags(Optional[TagList], default:None) –An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 | |