Class: Google::Apis::PredictionV1_4::Output
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_4::Output
- 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
-
#id ⇒ String
The unique name for the predictive model.
-
#kind ⇒ String
What kind of resource this is.
-
#output_label ⇒ String
The most likely class label [Categorical models only].
-
#output_multi ⇒ Array<Google::Apis::PredictionV1_4::Output::OutputMulti>
A list of class labels with their estimated probabilities [Categorical models only].
-
#output_value ⇒ Float
The estimated regression value [Regression models only].
-
#self_link ⇒ String
A URL to re-request this resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Output
constructor
A new instance of Output.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#id ⇒ String
The unique name for the predictive model.
Corresponds to the JSON property id
70 71 72 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 70 def id @id end |
#kind ⇒ String
What kind of resource this is.
Corresponds to the JSON property kind
75 76 77 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 75 def kind @kind end |
#output_label ⇒ String
The most likely class label [Categorical models only].
Corresponds to the JSON property outputLabel
80 81 82 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 80 def output_label @output_label end |
#output_multi ⇒ Array<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_value ⇒ Float
The estimated regression value [Regression models only].
Corresponds to the JSON property outputValue
91 92 93 |
# File 'generated/google/apis/prediction_v1_4/classes.rb', line 91 def output_value @output_value end |
#self_link ⇒ String
A URL to re-request this resource.
Corresponds to the JSON property selfLink
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 |