Class: Google::Apis::BigqueryV2::Entry
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::Entry
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Overview
A single entry in the confusion matrix.
Instance Attribute Summary collapse
-
#item_count ⇒ Fixnum
Number of items being predicted as this label.
-
#predicted_label ⇒ String
The predicted label.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entry
constructor
A new instance of Entry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Entry
Returns a new instance of Entry
1448 1449 1450 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#item_count ⇒ Fixnum
Number of items being predicted as this label.
Corresponds to the JSON property itemCount
1439 1440 1441 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1439 def item_count @item_count end |
#predicted_label ⇒ String
The predicted label. For confidence_threshold > 0, we will
also add an entry indicating the number of items under the
confidence threshold.
Corresponds to the JSON property predictedLabel
1446 1447 1448 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1446 def predicted_label @predicted_label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1453 1454 1455 1456 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1453 def update!(**args) @item_count = args[:item_count] if args.key?(:item_count) @predicted_label = args[:predicted_label] if args.key?(:predicted_label) end |