Hands-On Artificial Intelligence on Google Cloud Platform by Anand Deshpande

Hands-On Artificial Intelligence on Google Cloud Platform by Anand Deshpande

Author:Anand Deshpande [Anand Deshpande]
Language: eng
Format: epub
Tags: COM004000 - COMPUTERS / Intelligence (AI) and Semantics, COM062000 - COMPUTERS / Data Modeling and Design, COM048000 - COMPUTERS / Systems Architecture / Distributed Systems and Computing
Publisher: Packt
Published: 2020-03-06T11:32:36+00:00


job_id = '{}_{}_{}'.format(clean_project_name, model_name,

timestamp)

Start building the request dictionary with the required information:

body = {'jobId': job_id,

'predictionInput': {

'dataFormat': data_format,

'inputPaths': input_paths,

'outputPath': output_path,

'region': region}}

Use the version if it's present or the model (its default version) if not:

if version_name:

body['predictionInput']['versionName'] = version_id

else:

body['predictionInput']['modelName'] = model_id

Only include a maximum number of workers or a runtime version if specified. Otherwise, let the service use its defaults:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.