List

Lists the jobs in the project

4 variables
71 variables

Lists the jobs in the project.

If there are no jobs that match the request parameters, the list request returns an empty response body: {}

Authorization

To use this building block you will have to grant access to at least one of the following scopes:

  • View and manage your data across Google Cloud Platform services

Input

This building block consumes 4 input parameters

  = Parameter name
  = Format

parent STRING Required

Required. The name of the project for which to list jobs

pageSize INTEGER

Optional. The number of jobs to retrieve per "page" of results. If there are more remaining results than this number, the response message will contain a valid value in the next_page_token field.

The default value is 20, and the maximum page size is 100

filter STRING

Optional. Specifies the subset of jobs to retrieve. You can filter on the value of one or more attributes of the job object. For example, retrieve jobs with a job identifier that starts with 'census':

<p><code>gcloud ai-platform jobs list --filter='jobId:census*'</code> <p>List all failed jobs with names that start with 'rnn': <p><code>gcloud ai-platform jobs list --filter='jobId:rnn* AND state:FAILED'</code> <p>For more examples, see the guide to <a href="/ml-engine/docs/tensorflow/monitor-training">monitoring jobs</a>.

pageToken STRING

Optional. A page token to request the next page of results.

You get the token from the next_page_token field of the response from the previous call

Output

This building block provides 71 output parameters

  = Parameter name
  = Format

jobs[] OBJECT

Represents a training or prediction job

jobs[].trainingOutput OBJECT

Represents results of a training job. Output only

jobs[].trainingOutput.isBuiltInAlgorithmJob BOOLEAN

Whether this job is a built-in Algorithm job

jobs[].trainingOutput.builtInAlgorithmOutput OBJECT

Represents output related to a built-in algorithm Job

jobs[].trainingOutput.builtInAlgorithmOutput.pythonVersion STRING

Python version on which the built-in algorithm was trained

jobs[].trainingOutput.builtInAlgorithmOutput.runtimeVersion STRING

AI Platform runtime version on which the built-in algorithm was trained

jobs[].trainingOutput.builtInAlgorithmOutput.framework STRING

Framework on which the built-in algorithm was trained

jobs[].trainingOutput.builtInAlgorithmOutput.modelPath STRING

The Cloud Storage path to the model/ directory where the training job saves the trained model. Only set for successful jobs that don't use hyperparameter tuning

jobs[].trainingOutput.trials[] OBJECT

Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial

jobs[].trainingOutput.hyperparameterMetricTag STRING

The TensorFlow summary tag name used for optimizing hyperparameter tuning trials. See HyperparameterSpec.hyperparameterMetricTag for more information. Only set for hyperparameter tuning jobs

jobs[].trainingOutput.completedTrialCount INTEGER

The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs

jobs[].trainingOutput.isHyperparameterTuningJob BOOLEAN

Whether this job is a hyperparameter tuning job

jobs[].trainingOutput.consumedMLUnits NUMBER

The amount of ML units consumed by the job

jobs[].createTime ANY

Output only. When the job was created

jobs[].labels OBJECT

Optional. One or more labels that you can add, to organize your jobs. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on using labels

jobs[].labels.customKey.value STRING

Optional. One or more labels that you can add, to organize your jobs. Each label is a key-value pair, where both the key and the value are arbitrary strings that you supply. For more information, see the documentation on using labels

jobs[].predictionInput OBJECT

Represents input parameters for a prediction job

jobs[].predictionInput.outputPath STRING

Required. The output Google Cloud Storage location

jobs[].predictionInput.outputDataFormat ENUMERATION

Optional. Format of the output data files, defaults to JSON

jobs[].predictionInput.dataFormat ENUMERATION

Required. The format of the input data files

jobs[].predictionInput.batchSize INTEGER

Optional. Number of records per batch, defaults to 64. The service will buffer batch_size number of records in memory before invoking one Tensorflow prediction call internally. So take the record size and memory available into consideration when setting this parameter

jobs[].predictionInput.runtimeVersion STRING

Optional. The AI Platform runtime version to use for this batch prediction. If not set, AI Platform will pick the runtime version used during the CreateVersion request for this model version, or choose the latest stable version when model version information is not available such as when the model is specified by uri

jobs[].predictionInput.inputPaths[] STRING

jobs[].predictionInput.region STRING

Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services

jobs[].predictionInput.versionName STRING

Use this field if you want to specify a version of the model to use. The string is formatted the same way as model_version, with the addition of the version information:

"projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION"

jobs[].predictionInput.modelName STRING

Use this field if you want to use the default version for the specified model. The string must use the following format:

"projects/YOUR_PROJECT/models/YOUR_MODEL"

jobs[].predictionInput.uri STRING

Use this field if you want to specify a Google Cloud Storage path for the model to use

jobs[].predictionInput.maxWorkerCount INTEGER

Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified

jobs[].predictionInput.signatureName STRING

Optional. The name of the signature defined in the SavedModel to use for this job. Please refer to SavedModel for information about how to use signatures.

Defaults to DEFAULT_SERVING_SIGNATURE_DEF_KEY , which is "serving_default"

jobs[].errorMessage STRING

Output only. The details of a failure or a cancellation

jobs[].etag BINARY

etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a job from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform job updates in order to avoid race conditions: An etag is returned in the response to GetJob, and systems are expected to put that etag in the request to UpdateJob to ensure that their change will be applied to the same version of the job

jobs[].trainingInput OBJECT

Represents input parameters for a training job. When using the gcloud command to submit your training job, you can specify the input parameters as command-line arguments and/or in a YAML configuration file referenced from the --config command-line argument. For details, see the guide to submitting a training job

jobs[].trainingInput.workerCount INTEGER

Optional. The number of worker replicas to use for the training job. Each replica in the cluster will be of the type specified in worker_type.

This value can only be used when scale_tier is set to CUSTOM. If you set this value, you must also set worker_type.

The default value is zero

jobs[].trainingInput.masterType STRING

Optional. Specifies the type of virtual machine to use for your training job's master worker.

The following types are supported:

<dl> <dt>standard</dt> <dd> A basic machine configuration suitable for training simple models with small to moderate datasets. </dd> <dt>large_model</dt> <dd> A machine with a lot of memory, specially suited for parameter servers when your model is large (having many hidden layers or layers with very large numbers of nodes). </dd> <dt>complex_model_s</dt> <dd> A machine suitable for the master and workers of the cluster when your model requires more computation than the standard machine can handle satisfactorily. </dd> <dt>complex_model_m</dt> <dd> A machine with roughly twice the number of cores and roughly double the memory of <i>complex_model_s</i>. </dd> <dt>complex_model_l</dt> <dd> A machine with roughly twice the number of cores and roughly double the memory of <i>complex_model_m</i>. </dd> <dt>standard_gpu</dt> <dd> A machine equivalent to <i>standard</i> that also includes a single NVIDIA Tesla K80 GPU. See more about <a href="/ml-engine/docs/tensorflow/using-gpus">using GPUs to train your model</a>. </dd> <dt>complex_model_m_gpu</dt> <dd> A machine equivalent to <i>complex_model_m</i> that also includes four NVIDIA Tesla K80 GPUs. </dd> <dt>complex_model_l_gpu</dt> <dd> A machine equivalent to <i>complex_model_l</i> that also includes eight NVIDIA Tesla K80 GPUs. </dd> <dt>standard_p100</dt> <dd> A machine equivalent to <i>standard</i> that also includes a single NVIDIA Tesla P100 GPU. </dd> <dt>complex_model_m_p100</dt> <dd> A machine equivalent to <i>complex_model_m</i> that also includes four NVIDIA Tesla P100 GPUs. </dd> <dt>standard_v100</dt> <dd> A machine equivalent to <i>standard</i> that also includes a single NVIDIA Tesla V100 GPU. </dd> <dt>large_model_v100</dt> <dd> A machine equivalent to <i>large_model</i> that also includes a single NVIDIA Tesla V100 GPU. </dd> <dt>complex_model_m_v100</dt> <dd> A machine equivalent to <i>complex_model_m</i> that also includes four NVIDIA Tesla V100 GPUs. </dd> <dt>complex_model_l_v100</dt> <dd> A machine equivalent to <i>complex_model_l</i> that also includes eight NVIDIA Tesla V100 GPUs. </dd> <dt>cloud_tpu</dt> <dd> A TPU VM including one Cloud TPU. See more about <a href="/ml-engine/docs/tensorflow/using-tpus">using TPUs to train your model</a>. </dd> </dl>

You may also use certain Compute Engine machine types directly in this field. The following types are supported:

  • n1-standard-4
  • n1-standard-8
  • n1-standard-16
  • n1-standard-32
  • n1-standard-64
  • n1-standard-96
  • n1-highmem-2
  • n1-highmem-4
  • n1-highmem-8
  • n1-highmem-16
  • n1-highmem-32
  • n1-highmem-64
  • n1-highmem-96
  • n1-highcpu-16
  • n1-highcpu-32
  • n1-highcpu-64
  • n1-highcpu-96

See more about using Compute Engine machine types.

You must set this value when scaleTier is set to CUSTOM

jobs[].trainingInput.maxRunningTime ANY

Optional. The maximum job running time. The default is 7 days

jobs[].trainingInput.runtimeVersion STRING

Optional. The AI Platform runtime version to use for training. If not set, AI Platform uses the default stable version, 1.0. For more information, see the runtime version list and how to manage runtime versions

jobs[].trainingInput.pythonModule STRING

Required. The Python module name to run after installing the packages

jobs[].trainingInput.args[] STRING

jobs[].trainingInput.region STRING

Required. The Google Compute Engine region to run the training job in. See the available regions for AI Platform services

jobs[].trainingInput.workerType STRING

Optional. Specifies the type of virtual machine to use for your training job's worker nodes.

The supported values are the same as those described in the entry for masterType.

This value must be consistent with the category of machine type that masterType uses. In other words, both must be AI Platform machine types or both must be Compute Engine machine types.

If you use cloud_tpu for this value, see special instructions for configuring a custom TPU machine.

This value must be present when scaleTier is set to CUSTOM and workerCount is greater than zero

jobs[].trainingInput.parameterServerType STRING

Optional. Specifies the type of virtual machine to use for your training job's parameter server.

The supported values are the same as those described in the entry for master_type.

This value must be consistent with the category of machine type that masterType uses. In other words, both must be AI Platform machine types or both must be Compute Engine machine types.

This value must be present when scaleTier is set to CUSTOM and parameter_server_count is greater than zero

jobs[].trainingInput.parameterServerConfig OBJECT

Represents the configuration for a replica in a cluster

jobs[].trainingInput.parameterServerConfig.imageUri STRING

The Docker image to run on the replica. This image must be in Container Registry. Learn more about configuring custom containers

jobs[].trainingInput.masterConfig OBJECT

Represents the configuration for a replica in a cluster

jobs[].trainingInput.masterConfig.imageUri STRING

The Docker image to run on the replica. This image must be in Container Registry. Learn more about configuring custom containers

jobs[].trainingInput.scaleTier ENUMERATION

Required. Specifies the machine types, the number of replicas for workers and parameter servers

jobs[].trainingInput.jobDir STRING

Optional. A Google Cloud Storage path in which to store training outputs and other data needed for training. This path is passed to your TensorFlow program as the '--job-dir' command-line argument. The benefit of specifying this field is that Cloud ML validates the path for use in training

jobs[].trainingInput.hyperparameters OBJECT

Represents a set of hyperparameters to optimize

jobs[].trainingInput.hyperparameters.algorithm ENUMERATION

Optional. The search algorithm specified for the hyperparameter tuning job. Uses the default AI Platform hyperparameter tuning algorithm if unspecified

jobs[].trainingInput.hyperparameters.hyperparameterMetricTag STRING

Optional. The TensorFlow summary tag name to use for optimizing trials. For current versions of TensorFlow, this tag name should exactly match what is shown in TensorBoard, including all scopes. For versions of TensorFlow prior to 0.12, this should be only the tag passed to tf.Summary. By default, "training/hptuning/metric" will be used

jobs[].trainingInput.hyperparameters.enableTrialEarlyStopping BOOLEAN

Optional. Indicates if the hyperparameter tuning job enables auto trial early stopping

jobs[].trainingInput.hyperparameters.resumePreviousJobId STRING

Optional. The prior hyperparameter tuning job id that users hope to continue with. The job id will be used to find the corresponding vizier study guid and resume the study

jobs[].trainingInput.hyperparameters.maxParallelTrials INTEGER

Optional. The number of training trials to run concurrently. You can reduce the time it takes to perform hyperparameter tuning by adding trials in parallel. However, each trail only benefits from the information gained in completed trials. That means that a trial does not get access to the results of trials running at the same time, which could reduce the quality of the overall optimization.

Each trial will use the same scale tier and machine types.

Defaults to one

jobs[].trainingInput.hyperparameters.maxFailedTrials INTEGER

Optional. The number of failed trials that need to be seen before failing the hyperparameter tuning job. You can specify this field to override the default failing criteria for AI Platform hyperparameter tuning jobs.

Defaults to zero, which means the service decides when a hyperparameter job should fail

jobs[].trainingInput.hyperparameters.goal ENUMERATION

Required. The type of goal to use for tuning. Available types are MAXIMIZE and MINIMIZE.

Defaults to MAXIMIZE

jobs[].trainingInput.hyperparameters.maxTrials INTEGER

Optional. How many training trials should be attempted to optimize the specified hyperparameters.

Defaults to one

jobs[].trainingInput.pythonVersion STRING

Optional. The version of Python used in training. If not set, the default version is '2.7'. Python '3.5' is available when runtime_version is set to '1.4' and above. Python '2.7' works with all supported runtime versions

jobs[].trainingInput.workerConfig OBJECT

Represents the configuration for a replica in a cluster

jobs[].trainingInput.workerConfig.imageUri STRING

The Docker image to run on the replica. This image must be in Container Registry. Learn more about configuring custom containers

jobs[].trainingInput.parameterServerCount INTEGER

Optional. The number of parameter server replicas to use for the training job. Each replica in the cluster will be of the type specified in parameter_server_type.

This value can only be used when scale_tier is set to CUSTOM.If you set this value, you must also set parameter_server_type.

The default value is zero

jobs[].trainingInput.packageUris[] STRING

jobs[].state ENUMERATION

Output only. The detailed state of a job

jobs[].jobId STRING

Required. The user-specified id of the job

jobs[].endTime ANY

Output only. When the job processing was completed

jobs[].startTime ANY

Output only. When the job processing was started

jobs[].predictionOutput OBJECT

Represents results of a prediction job

jobs[].predictionOutput.errorCount INTEGER

The number of data instances which resulted in errors

jobs[].predictionOutput.outputPath STRING

The output Google Cloud Storage location provided at the job creation time

jobs[].predictionOutput.nodeHours NUMBER

Node hours used by the batch prediction job

jobs[].predictionOutput.predictionCount INTEGER

The number of generated predictions

nextPageToken STRING

Optional. Pass this token as the page_token field of the request for a subsequent call