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 (for example, Colossus Namespace System or Google Cloud Storage).
-
#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.
2029 2030 2031 |
# File 'lib/google/apis/language_v2/classes.rb', line 2029 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
2016 2017 2018 |
# File 'lib/google/apis/language_v2/classes.rb', line 2016 def evaluation_metrics @evaluation_metrics end |
#file_spec ⇒ Google::Apis::LanguageV2::XpsFileSpec
Spec of input and output files, on external file systems (for example,
Colossus Namespace System or Google Cloud Storage).
Corresponds to the JSON property fileSpec
2022 2023 2024 |
# File 'lib/google/apis/language_v2/classes.rb', line 2022 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
2027 2028 2029 |
# File 'lib/google/apis/language_v2/classes.rb', line 2027 def num_evaluation_metrics @num_evaluation_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2034 2035 2036 2037 2038 |
# File 'lib/google/apis/language_v2/classes.rb', line 2034 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 |