class Google::Apis::MlV1::GoogleCloudMlV1PredictionInput

Represents input parameters for a prediction job.

Attributes

batch_size[RW]

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. Corresponds to the JSON property `batchSize` @return [Fixnum]

data_format[RW]

Required. The format of the input data files. Corresponds to the JSON property `dataFormat` @return [String]

input_paths[RW]

Required. The Cloud Storage location of the input data files. May contain wildcards. Corresponds to the JSON property `inputPaths` @return [Array<String>]

max_worker_count[RW]

Optional. The maximum number of workers to be used for parallel processing. Defaults to 10 if not specified. Corresponds to the JSON property `maxWorkerCount` @return [Fixnum]

model_name[RW]

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”` Corresponds to the JSON property `modelName` @return [String]

output_data_format[RW]

Optional. Format of the output data files, defaults to JSON. Corresponds to the JSON property `outputDataFormat` @return [String]

output_path[RW]

Required. The output Google Cloud Storage location. Corresponds to the JSON property `outputPath` @return [String]

region[RW]

Required. The Google Compute Engine region to run the prediction job in. See the available regions for AI Platform services. Corresponds to the JSON property `region` @return [String]

runtime_version[RW]

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. Corresponds to the JSON property `runtimeVersion` @return [String]

signature_name[RW]

Optional. The name of the signature defined in the SavedModel to use for this job. Please refer to [SavedModel](tensorflow.github.io/serving/ serving_basic.html) for information about how to use signatures. Defaults to [ DEFAULT_SERVING_SIGNATURE_DEF_KEY](www.tensorflow.org/api_docs/python/ tf/saved_model/signature_constants) , which is “serving_default”. Corresponds to the JSON property `signatureName` @return [String]

uri[RW]

Use this field if you want to specify a Google Cloud Storage path for the model to use. Corresponds to the JSON property `uri` @return [String]

version_name[RW]

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”` Corresponds to the JSON property `versionName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/ml_v1/classes.rb, line 2081
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/ml_v1/classes.rb, line 2086
def update!(**args)
  @batch_size = args[:batch_size] if args.key?(:batch_size)
  @data_format = args[:data_format] if args.key?(:data_format)
  @input_paths = args[:input_paths] if args.key?(:input_paths)
  @max_worker_count = args[:max_worker_count] if args.key?(:max_worker_count)
  @model_name = args[:model_name] if args.key?(:model_name)
  @output_data_format = args[:output_data_format] if args.key?(:output_data_format)
  @output_path = args[:output_path] if args.key?(:output_path)
  @region = args[:region] if args.key?(:region)
  @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
  @signature_name = args[:signature_name] if args.key?(:signature_name)
  @uri = args[:uri] if args.key?(:uri)
  @version_name = args[:version_name] if args.key?(:version_name)
end