Class: Google::Apis::PredictionV1_5::Output
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_5::Output
- 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
-
#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_5::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
462 463 464 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 462 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
The unique name for the predictive model.
Corresponds to the JSON property id
434 435 436 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 434 def id @id end |
#kind ⇒ String
What kind of resource this is.
Corresponds to the JSON property kind
439 440 441 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 439 def kind @kind end |
#output_label ⇒ String
The most likely class label [Categorical models only].
Corresponds to the JSON property outputLabel
444 445 446 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 444 def output_label @output_label end |
#output_multi ⇒ Array<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_value ⇒ Float
The estimated regression value [Regression models only].
Corresponds to the JSON property outputValue
455 456 457 |
# File 'generated/google/apis/prediction_v1_5/classes.rb', line 455 def output_value @output_value end |
#self_link ⇒ String
A URL to re-request this resource.
Corresponds to the JSON property selfLink
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 |