Class: Google::Apis::LanguageV2::XpsEvaluationMetricsSet
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsEvaluationMetricsSet
- 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
Specifies location of model evaluation metrics.
Instance Attribute Summary collapse
-
#evaluation_metrics ⇒ Array<Google::Apis::LanguageV2::XpsEvaluationMetrics>
Inline EvaluationMetrics - should be relatively small.
-
#file_spec ⇒ Google::Apis::LanguageV2::XpsFileSpec
Spec of input and output files, on external file systems (CNS, GCS, etc).
-
#num_evaluation_metrics ⇒ Fixnum
Number of the evaluation metrics (usually one per label plus overall).
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsEvaluationMetricsSet
constructor
A new instance of XpsEvaluationMetricsSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsEvaluationMetricsSet
Returns a new instance of XpsEvaluationMetricsSet.
2030 2031 2032 |
# File 'lib/google/apis/language_v2/classes.rb', line 2030 def initialize(**args) update!(**args) end |
Instance Attribute Details
#evaluation_metrics ⇒ Array<Google::Apis::LanguageV2::XpsEvaluationMetrics>
Inline EvaluationMetrics - should be relatively small. For passing large
quantities of exhaustive metrics, use file_spec.
Corresponds to the JSON property evaluationMetrics
2018 2019 2020 |
# File 'lib/google/apis/language_v2/classes.rb', line 2018 def evaluation_metrics @evaluation_metrics end |
#file_spec ⇒ Google::Apis::LanguageV2::XpsFileSpec
Spec of input and output files, on external file systems (CNS, GCS, etc).
Corresponds to the JSON property fileSpec
2023 2024 2025 |
# File 'lib/google/apis/language_v2/classes.rb', line 2023 def file_spec @file_spec end |
#num_evaluation_metrics ⇒ Fixnum
Number of the evaluation metrics (usually one per label plus overall).
Corresponds to the JSON property numEvaluationMetrics
2028 2029 2030 |
# File 'lib/google/apis/language_v2/classes.rb', line 2028 def num_evaluation_metrics @num_evaluation_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2035 2036 2037 2038 2039 |
# File 'lib/google/apis/language_v2/classes.rb', line 2035 def update!(**args) @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics) @file_spec = args[:file_spec] if args.key?(:file_spec) @num_evaluation_metrics = args[:num_evaluation_metrics] if args.key?(:num_evaluation_metrics) end |