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
2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 | |