Class: Google::Apis::BigqueryV2::Entry

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Entry

Returns a new instance of Entry.


1743
1744
1745
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1743

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#item_countFixnum

Number of items being predicted as this label. Corresponds to the JSON property itemCount

Returns:

  • (Fixnum)

1735
1736
1737
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1735

def item_count
  @item_count
end

#predicted_labelString

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

Returns:

  • (String)

1741
1742
1743
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1741

def predicted_label
  @predicted_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1748
1749
1750
1751
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1748

def update!(**args)
  @item_count = args[:item_count] if args.key?(:item_count)
  @predicted_label = args[:predicted_label] if args.key?(:predicted_label)
end