update_ml_transform
async
¶
update_ml_transform(
transform_id: HashString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
name: Optional[NameString] = None,
description: Optional[DescriptionString] = None,
parameters: Optional[TransformParameters] = None,
role: Optional[RoleString] = None,
glue_version: Optional[GlueVersionString] = None,
max_capacity: Optional[NullableDouble] = None,
worker_type: Optional[WorkerType] = None,
number_of_workers: Optional[NullableInteger] = None,
timeout: Optional[Timeout] = None,
max_retries: Optional[NullableInteger] = None,
) -> UpdateMLTransformResponse
Updates an existing machine learning transform. Call this operation to tune the algorithm parameters to achieve better results.
After calling this operation, you can call the StartMLEvaluationTaskRun operation to assess how well your new parameters achieved your goals (such as improving the quality of your machine learning transform, or making it more cost-effective).
Parameters:
-
transform_id(HashString) –A unique identifier that was generated when the transform was created.
-
name(Optional[NameString], default:None) –The unique name that you gave the transform when you created it.
-
description(Optional[DescriptionString], default:None) –A description of the transform. The default is an empty string.
-
parameters(Optional[TransformParameters], default:None) –The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on the transform type.
-
role(Optional[RoleString], default:None) –The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.
-
glue_version(Optional[GlueVersionString], default:None) –This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.
-
max_capacity(Optional[NullableDouble], default:None) –The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.
When the
WorkerTypefield is set to a value other thanStandard, theMaxCapacityfield is set automatically and becomes read-only. -
worker_type(Optional[WorkerType], default:None) –The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.
-
For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. -
For the
G.1Xworker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker. -
For the
G.2Xworker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.
-
-
number_of_workers(Optional[NullableInteger], default:None) –The number of workers of a defined
workerTypethat are allocated when this task runs. -
timeout(Optional[Timeout], default:None) –The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters
TIMEOUTstatus. The default is 2,880 minutes (48 hours). -
max_retries(Optional[NullableInteger], default:None) –The maximum number of times to retry a task for this transform after a task run fails.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
EntityNotFoundException–A specified entity does not exist
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 | |