Class: Google::Apis::LanguageV2::XpsConfusionMatrixRow
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsConfusionMatrixRow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v2/classes.rb,
lib/google/apis/language_v2/representations.rb,
lib/google/apis/language_v2/representations.rb
Overview
A row in the confusion matrix.
Instance Attribute Summary collapse
-
#count ⇒ Array<Fixnum>
Same as above except intended to represent other counts (for e.g. for segmentation this is pixel count).
-
#example_count ⇒ Array<Fixnum>
Value of the specific cell in the confusion matrix.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsConfusionMatrixRow
constructor
A new instance of XpsConfusionMatrixRow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsConfusionMatrixRow
Returns a new instance of XpsConfusionMatrixRow.
1643 1644 1645 |
# File 'lib/google/apis/language_v2/classes.rb', line 1643 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Array<Fixnum>
Same as above except intended to represent other counts (for e.g. for
segmentation this is pixel count). NOTE(params): Only example_count or count
is set (oneoff does not support repeated fields unless they are embedded
inside another message).
Corresponds to the JSON property count
1634 1635 1636 |
# File 'lib/google/apis/language_v2/classes.rb', line 1634 def count @count end |
#example_count ⇒ Array<Fixnum>
Value of the specific cell in the confusion matrix. The number of values each
row has (i.e. the length of the row) is equal to the length of the
annotation_spec_id_token field.
Corresponds to the JSON property exampleCount
1641 1642 1643 |
# File 'lib/google/apis/language_v2/classes.rb', line 1641 def example_count @example_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1648 1649 1650 1651 |
# File 'lib/google/apis/language_v2/classes.rb', line 1648 def update!(**args) @count = args[:count] if args.key?(:count) @example_count = args[:example_count] if args.key?(:example_count) end |