Class: Google::Apis::MlV1beta1::GoogleCloudMlV1beta1PredictionOutput

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/ml_v1beta1/classes.rb,
generated/google/apis/ml_v1beta1/representations.rb,
generated/google/apis/ml_v1beta1/representations.rb

Overview

Represents results of a prediction job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1beta1PredictionOutput

Returns a new instance of GoogleCloudMlV1beta1PredictionOutput



1206
1207
1208
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1206

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#error_countFixnum

The number of data instances which resulted in errors. Corresponds to the JSON property errorCount

Returns:

  • (Fixnum)


1189
1190
1191
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1189

def error_count
  @error_count
end

#node_hoursFloat

Node hours used by the batch prediction job. Corresponds to the JSON property nodeHours

Returns:

  • (Float)


1194
1195
1196
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1194

def node_hours
  @node_hours
end

#output_pathString

The output Google Cloud Storage location provided at the job creation time. Corresponds to the JSON property outputPath

Returns:

  • (String)


1199
1200
1201
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1199

def output_path
  @output_path
end

#prediction_countFixnum

The number of generated predictions. Corresponds to the JSON property predictionCount

Returns:

  • (Fixnum)


1204
1205
1206
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1204

def prediction_count
  @prediction_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1211
1212
1213
1214
1215
1216
# File 'generated/google/apis/ml_v1beta1/classes.rb', line 1211

def update!(**args)
  @error_count = args[:error_count] if args.key?(:error_count)
  @node_hours = args[:node_hours] if args.key?(:node_hours)
  @output_path = args[:output_path] if args.key?(:output_path)
  @prediction_count = args[:prediction_count] if args.key?(:prediction_count)
end