Class: Google::Apis::PredictionV1_5::Output

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

Defined Under Namespace

Classes: OutputMulti

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) ⇒ Output

Returns a new instance of Output



462
463
464
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 462

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

Instance Attribute Details

#idString

The unique name for the predictive model. Corresponds to the JSON property id

Returns:

  • (String)


434
435
436
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 434

def id
  @id
end

#kindString

What kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


439
440
441
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 439

def kind
  @kind
end

#output_labelString

The most likely class label [Categorical models only]. Corresponds to the JSON property outputLabel

Returns:

  • (String)


444
445
446
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 444

def output_label
  @output_label
end

#output_multiArray<Google::Apis::PredictionV1_5::Output::OutputMulti>

A list of class labels with their estimated probabilities [Categorical models only]. Corresponds to the JSON property outputMulti



450
451
452
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 450

def output_multi
  @output_multi
end

#output_valueFloat

The estimated regression value [Regression models only]. Corresponds to the JSON property outputValue

Returns:

  • (Float)


455
456
457
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 455

def output_value
  @output_value
end

A URL to re-request this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


460
461
462
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 460

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



467
468
469
470
471
472
473
474
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 467

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @output_label = args[:output_label] if args.key?(:output_label)
  @output_multi = args[:output_multi] if args.key?(:output_multi)
  @output_value = args[:output_value] if args.key?(:output_value)
  @self_link = args[:self_link] if args.key?(:self_link)
end