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
3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 | |