Class: Google::Apis::PredictionV1_4::Output

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/prediction_v1_4/classes.rb,
generated/google/apis/prediction_v1_4/representations.rb,
generated/google/apis/prediction_v1_4/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



98
99
100
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 98

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)


70
71
72
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 70

def id
  @id
end

#kindString

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

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 75

def kind
  @kind
end

#output_labelString

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

Returns:

  • (String)


80
81
82
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 80

def output_label
  @output_label
end

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

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



86
87
88
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 86

def output_multi
  @output_multi
end

#output_valueFloat

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

Returns:

  • (Float)


91
92
93
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 91

def output_value
  @output_value
end

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

Returns:

  • (String)


96
97
98
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 96

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



103
104
105
106
107
108
109
110
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 103

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