start_ml_model_transform_job
¶
start_ml_model_transform_job(
model_transform_output_s3_location: str,
*,
config_overrides: Optional[neptunedataClientConfig] = None,
id: Optional[str] = None,
data_processing_job_id: Optional[str] = None,
ml_model_training_job_id: Optional[str] = None,
training_job_name: Optional[str] = None,
sagemaker_iam_role_arn: Optional[str] = None,
neptune_iam_role_arn: Optional[str] = None,
custom_model_transform_parameters: Optional[CustomModelTransformParameters] = None,
base_processing_instance_type: Optional[str] = None,
base_processing_instance_volume_size_in_gb: Optional[int] = None,
subnets: Optional[StringList] = None,
security_group_ids: Optional[StringList] = None,
volume_encryption_kms_key: Optional[str] = None,
s3_output_encryption_kms_key: Optional[str] = None,
) -> StartMLModelTransformJobOutput
Creates a new model transform job. See Use a trained model to generate new model artifacts.
When invoking this operation in a Neptune cluster that has IAM authentication enabled, the IAM user or role making the request must have a policy attached that allows the neptune-db:StartMLModelTransformJob IAM action in that cluster.
Parameters:
-
id(Optional[str], default:None) –A unique identifier for the new job. The default is an autogenerated UUID.
-
data_processing_job_id(Optional[str], default:None) –The job ID of a completed data-processing job. You must include either
dataProcessingJobIdand amlModelTrainingJobId, or atrainingJobName. -
ml_model_training_job_id(Optional[str], default:None) –The job ID of a completed model-training job. You must include either
dataProcessingJobIdand amlModelTrainingJobId, or atrainingJobName. -
training_job_name(Optional[str], default:None) –The name of a completed SageMaker training job. You must include either
dataProcessingJobIdand amlModelTrainingJobId, or atrainingJobName. -
model_transform_output_s3_location(str) –The location in Amazon S3 where the model artifacts are to be stored.
-
sagemaker_iam_role_arn(Optional[str], default:None) –The ARN of an IAM role for SageMaker execution. This must be listed in your DB cluster parameter group or an error will occur.
-
neptune_iam_role_arn(Optional[str], default:None) –The ARN of an IAM role that provides Neptune access to SageMaker and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur.
-
custom_model_transform_parameters(Optional[CustomModelTransformParameters], default:None) –Configuration information for a model transform using a custom model. The
customModelTransformParametersobject contains the following fields, which must have values compatible with the saved model parameters from the training job: -
base_processing_instance_type(Optional[str], default:None) –The type of ML instance used in preparing and managing training of ML models. This is an ML compute instance chosen based on memory requirements for processing the training data and model.
-
base_processing_instance_volume_size_in_gb(Optional[int], default:None) –The disk volume size of the training instance in gigabytes. The default is 0. Both input data and the output model are stored on disk, so the volume size must be large enough to hold both data sets. If not specified or 0, Neptune ML selects a disk volume size based on the recommendation generated in the data processing step.
-
subnets(Optional[StringList], default:None) –The IDs of the subnets in the Neptune VPC. The default is None.
-
security_group_ids(Optional[StringList], default:None) –The VPC security group IDs. The default is None.
-
volume_encryption_kms_key(Optional[str], default:None) –The Amazon Key Management Service (KMS) key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instances that run the training job. The default is None.
-
s3_output_encryption_kms_key(Optional[str], default:None) –The Amazon Key Management Service (KMS) key that SageMaker uses to encrypt the output of the processing job. The default is none.
Raises:
-
BadRequestException–Raised when a request is submitted that cannot be processed.
-
ClientTimeoutException–Raised when a request timed out in the client.
-
ConstraintViolationException–Raised when a value in a request field did not satisfy required constraints.
-
IllegalArgumentException–Raised when an argument in a request is not supported.
-
InvalidArgumentException–Raised when an argument in a request has an invalid value.
-
InvalidParameterException–Raised when a parameter value is not valid.
-
MissingParameterException–Raised when a required parameter is missing.
-
MLResourceNotFoundException–Raised when a specified machine-learning resource could not be found.
-
PreconditionsFailedException–Raised when a precondition for processing a request is not satisfied.
-
TooManyRequestsException–Raised when the number of requests being processed exceeds the limit.
-
UnsupportedOperationException–Raised when a request attempts to initiate an operation that is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_neptunedata/_services/neptunedata.py
3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 | |