Skip to content

Instantly share code, notes, and snippets.

@chrisking
Created November 26, 2019 18:29
Show Gist options
  • Select an option

  • Save chrisking/a906df7575eee733313f4bfd24cf7704 to your computer and use it in GitHub Desktop.

Select an option

Save chrisking/a906df7575eee733313f4bfd24cf7704 to your computer and use it in GitHub Desktop.
batch sample
impot boto3
personalize_rec = boto3.client(service_name='personalize')
batchInferenceJobArn = personalize_rec.create_batch_inference_job (
solutionVersionArn = solution_version_arn,
jobName = "RI_Workshop_Batch_Export_Job2",
roleArn = role_arn,
jobInput =
{"s3DataSource": {"path": s3_input_path}},
jobOutput =
{"s3DataDestination":{"path": s3_output_path}}
)
batchInferenceJobArn = batchInferenceJobArn['batchInferenceJobArn']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment