Resource: Job
Represents a training or prediction job.
JSON representation | |
---|---|
{ "jobId": string, "createTime": string, "startTime": string, "endTime": string, "state": enum ( |
Fields | |
---|---|
jobId |
Required. The user-specified id of the job. |
createTime |
Output only. When the job was created. |
startTime |
Output only. When the job processing was started. |
endTime |
Output only. When the job processing was completed. |
state |
Output only. The detailed state of a job. |
errorMessage |
Output only. The details of a failure or a cancellation. |
labels |
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. An object containing a list of |
etag |
A base64-encoded string. |
predictionInput |
Input parameters to create a prediction job. |
predictionOutput |
The current prediction job result. |
PredictionInput
Represents input parameters for a prediction job.
JSON representation | |
---|---|
{ "dataFormat": enum ( |
Fields | ||
---|---|---|
dataFormat |
Required. The format of the input data files. |
|
outputDataFormat |
Optional. Format of the output data files, defaults to JSON. |
|
inputPaths[] |
Required. The Cloud Storage location of the input data files. May contain wildcards. |
|
maxWorkerCount |
Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified. |
|
region |
Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services. |
|
runtimeVersion |
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 versions.create 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. |
|
batchSize |
Optional. Number of records per batch, defaults to 64. The service will buffer batchSize 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. |
|
signatureName |
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". |
|
Union field model_version . Required. The model or the version to use for prediction. model_version can be only one of the following: |
||
modelName |
Use this field if you want to use the default version for the specified model. The string must use the following format:
|
|
versionName |
Use this field if you want to specify a version of the model to use. The string is formatted the same way as
|
|
uri |
Use this field if you want to specify a Google Cloud Storage path for the model to use. |
|
outputPath |
Required. The output Google Cloud Storage location. |
DataFormat
The format used to separate data instances in the source and destination files.
Enums | |
---|---|
DATA_FORMAT_UNSPECIFIED |
Unspecified format. |
JSON |
Each line of the file is a JSON dictionary representing one record. |
TEXT |
Deprecated. Use JSON instead. |
TF_RECORD |
The source file is a TFRecord file. Currently available only for input data. |
TF_RECORD_GZIP |
The source file is a GZIP-compressed TFRecord file. Currently available only for input data. |
CSV |
Values are comma-separated rows, with keys in a separate file. Currently available only for output data. |
State
Describes the job state.
Enums | |
---|---|
STATE_UNSPECIFIED |
The job state is unspecified. |
QUEUED |
The job has been just created and processing has not yet begun. |
PREPARING |
The service is preparing to run the job. |
RUNNING |
The job is in progress. |
SUCCEEDED |
The job completed successfully. |
FAILED |
The job failed. errorMessage should contain the details of the failure. |
CANCELLING |
The job is being cancelled. errorMessage should describe the reason for the cancellation. |
CANCELLED |
The job has been cancelled. errorMessage should describe the reason for the cancellation. |
PredictionOutput
Represents results of a prediction job.
JSON representation | |
---|---|
{ "outputPath": string, "predictionCount": string, "errorCount": string, "nodeHours": number } |
Fields | |
---|---|
outputPath |
The output Google Cloud Storage location provided at the job creation time. |
predictionCount |
The number of generated predictions. |
errorCount |
The number of data instances which resulted in errors. |
nodeHours |
Node hours used by the batch prediction job. |
Methods |
|
---|---|
|
Cancels a running job. |
|
Creates a training or a batch prediction job. |
|
Describes a job. |
|
Gets the access control policy for a resource. |
|
Lists the jobs in the project. |
|
Updates a specific job resource. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |