start_ml_data_processing_job
async
¶
start_ml_data_processing_job(
input_data_s3_location: str,
processed_data_s3_location: str,
*,
config_overrides: Optional[AsyncneptunedataClientConfig] = None,
id: Optional[str] = None,
previous_data_processing_job_id: Optional[str] = None,
sagemaker_iam_role_arn: Optional[str] = None,
neptune_iam_role_arn: Optional[str] = None,
processing_instance_type: Optional[str] = None,
processing_instance_volume_size_in_gb: Optional[int] = None,
processing_time_out_in_seconds: Optional[int] = None,
model_type: Optional[str] = None,
config_file_name: Optional[str] = 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,
) -> StartMLDataProcessingJobOutput
Creates a new Neptune ML data processing job for processing the graph data exported from Neptune for training. See The dataprocessing command.
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:StartMLModelDataProcessingJob IAM action in that cluster.
Parameters:
-
id(Optional[str], default:None) –A unique identifier for the new job. The default is an autogenerated UUID.
-
previous_data_processing_job_id(Optional[str], default:None) –The job ID of a completed data processing job run on an earlier version of the data.
-
input_data_s3_location(str) –The URI of the Amazon S3 location where you want SageMaker to download the data needed to run the data processing job.
-
processed_data_s3_location(str) –The URI of the Amazon S3 location where you want SageMaker to save the results of a data processing job.
-
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 Amazon Resource Name (ARN) of an IAM role that SageMaker can assume to perform tasks on your behalf. This must be listed in your DB cluster parameter group or an error will occur.
-
processing_instance_type(Optional[str], default:None) –The type of ML instance used during data processing. Its memory should be large enough to hold the processed dataset. The default is the smallest ml.r5 type whose memory is ten times larger than the size of the exported graph data on disk.
-
processing_instance_volume_size_in_gb(Optional[int], default:None) –The disk volume size of the processing instance. Both input data and processed data are stored on disk, so the volume size must be large enough to hold both data sets. The default is 0. If not specified or 0, Neptune ML chooses the volume size automatically based on the data size.
-
processing_time_out_in_seconds(Optional[int], default:None) –Timeout in seconds for the data processing job. The default is 86,400 (1 day).
-
model_type(Optional[str], default:None) –One of the two model types that Neptune ML currently supports: heterogeneous graph models (
heterogeneous), and knowledge graph (kge). The default is none. If not specified, Neptune ML chooses the model type automatically based on the data. -
config_file_name(Optional[str], default:None) –A data specification file that describes how to load the exported graph data for training. The file is automatically generated by the Neptune export toolkit. The default is
training-data-configuration.json. -
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 (Amazon 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 (Amazon 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/async_neptunedata.py
3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 | |