Class: Google::Apis::PredictionV1_6::Output::OutputMulti
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_6::Output::OutputMulti
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_6/classes.rb,
generated/google/apis/prediction_v1_6/representations.rb,
generated/google/apis/prediction_v1_6/representations.rb
Instance Attribute Summary collapse
-
#label ⇒ String
The class label.
-
#score ⇒ String
The probability of the class label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OutputMulti
constructor
A new instance of OutputMulti.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OutputMulti
Returns a new instance of OutputMulti
713 714 715 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 713 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
The class label.
Corresponds to the JSON property label
706 707 708 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 706 def label @label end |
#score ⇒ String
The probability of the class label.
Corresponds to the JSON property score
711 712 713 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 711 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
718 719 720 721 |
# File 'generated/google/apis/prediction_v1_6/classes.rb', line 718 def update!(**args) @label = args[:label] if args.key?(:label) @score = args[:score] if args.key?(:score) end |