Class: Google::Apis::BigqueryV2::Row

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 row 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) ⇒ Row

Returns a new instance of Row.



5206
5207
5208
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5206

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

Instance Attribute Details

#actual_labelString

The original label of this row. Corresponds to the JSON property actualLabel

Returns:

  • (String)


5199
5200
5201
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5199

def actual_label
  @actual_label
end

#entriesArray<Google::Apis::BigqueryV2::Entry>

Info describing predicted label distribution. Corresponds to the JSON property entries



5204
5205
5206
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5204

def entries
  @entries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5211
5212
5213
5214
# File 'generated/google/apis/bigquery_v2/classes.rb', line 5211

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