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.
1941 1942 1943 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1941 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
1932 1933 1934 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1932 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
1939 1940 1941 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1939 def example_count @example_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1946 1947 1948 1949 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1946 def update!(**args) @count = args[:count] if args.key?(:count) @example_count = args[:example_count] if args.key?(:example_count) end |