Class: Google::Apis::MlV1::GoogleCloudMlV1Job
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1Job
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Overview
Represents a training or prediction job.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#end_time ⇒ String
Output only.
-
#error_message ⇒ String
Output only.
-
#job_id ⇒ String
Required.
-
#prediction_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionInput
Represents input parameters for a prediction job.
-
#prediction_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput
Represents results of a prediction job.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#training_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingInput
Represents input parameters for a training job.
-
#training_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput
Represents results of a training job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1Job
constructor
A new instance of GoogleCloudMlV1Job.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1Job
Returns a new instance of GoogleCloudMlV1Job
423 424 425 |
# File 'generated/google/apis/ml_v1/classes.rb', line 423 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. When the job was created.
Corresponds to the JSON property createTime
370 371 372 |
# File 'generated/google/apis/ml_v1/classes.rb', line 370 def create_time @create_time end |
#end_time ⇒ String
Output only. When the job processing was completed.
Corresponds to the JSON property endTime
375 376 377 |
# File 'generated/google/apis/ml_v1/classes.rb', line 375 def end_time @end_time end |
#error_message ⇒ String
Output only. The details of a failure or a cancellation.
Corresponds to the JSON property errorMessage
380 381 382 |
# File 'generated/google/apis/ml_v1/classes.rb', line 380 def @error_message end |
#job_id ⇒ String
Required. The user-specified id of the job.
Corresponds to the JSON property jobId
385 386 387 |
# File 'generated/google/apis/ml_v1/classes.rb', line 385 def job_id @job_id end |
#prediction_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionInput
Represents input parameters for a prediction job.
Corresponds to the JSON property predictionInput
390 391 392 |
# File 'generated/google/apis/ml_v1/classes.rb', line 390 def prediction_input @prediction_input end |
#prediction_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1PredictionOutput
Represents results of a prediction job.
Corresponds to the JSON property predictionOutput
395 396 397 |
# File 'generated/google/apis/ml_v1/classes.rb', line 395 def prediction_output @prediction_output end |
#start_time ⇒ String
Output only. When the job processing was started.
Corresponds to the JSON property startTime
400 401 402 |
# File 'generated/google/apis/ml_v1/classes.rb', line 400 def start_time @start_time end |
#state ⇒ String
Output only. The detailed state of a job.
Corresponds to the JSON property state
405 406 407 |
# File 'generated/google/apis/ml_v1/classes.rb', line 405 def state @state end |
#training_input ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingInput
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.
Corresponds to the JSON property trainingInput
416 417 418 |
# File 'generated/google/apis/ml_v1/classes.rb', line 416 def training_input @training_input end |
#training_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput
Represents results of a training job. Output only.
Corresponds to the JSON property trainingOutput
421 422 423 |
# File 'generated/google/apis/ml_v1/classes.rb', line 421 def training_output @training_output end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
428 429 430 431 432 433 434 435 436 437 438 439 |
# File 'generated/google/apis/ml_v1/classes.rb', line 428 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @end_time = args[:end_time] if args.key?(:end_time) @error_message = args[:error_message] if args.key?(:error_message) @job_id = args[:job_id] if args.key?(:job_id) @prediction_input = args[:prediction_input] if args.key?(:prediction_input) @prediction_output = args[:prediction_output] if args.key?(:prediction_output) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) @training_input = args[:training_input] if args.key?(:training_input) @training_output = args[:training_output] if args.key?(:training_output) end |