Class: Google::Apis::LanguageV1beta2::XpsConfusionMatrixRow
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsConfusionMatrixRow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/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.
1949 1950 1951 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1949 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
1940 1941 1942 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1940 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
1947 1948 1949 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1947 def example_count @example_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1954 1955 1956 1957 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1954 def update!(**args) @count = args[:count] if args.key?(:count) @example_count = args[:example_count] if args.key?(:example_count) end |