Class: Google::Apis::PredictionV1_3::Output::OutputMulti
- Inherits:
-
Object
- Object
- Google::Apis::PredictionV1_3::Output::OutputMulti
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prediction_v1_3/classes.rb,
generated/google/apis/prediction_v1_3/representations.rb,
generated/google/apis/prediction_v1_3/representations.rb
Instance Attribute Summary collapse
-
#label ⇒ String
The class label.
-
#score ⇒ Float
The probability of the class.
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
125 126 127 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
The class label.
Corresponds to the JSON property label
118 119 120 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 118 def label @label end |
#score ⇒ Float
The probability of the class.
Corresponds to the JSON property score
123 124 125 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 123 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
130 131 132 133 |
# File 'generated/google/apis/prediction_v1_3/classes.rb', line 130 def update!(**args) @label = args[:label] if args.key?(:label) @score = args[:score] if args.key?(:score) end |