Class: Google::Apis::LanguageV1beta2::XpsEvaluationMetricsSet
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsEvaluationMetricsSet
- 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
Specifies location of model evaluation metrics.
Instance Attribute Summary collapse
-
#evaluation_metrics ⇒ Array<Google::Apis::LanguageV1beta2::XpsEvaluationMetrics>
Inline EvaluationMetrics - should be relatively small.
-
#file_spec ⇒ Google::Apis::LanguageV1beta2::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.
2336 2337 2338 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#evaluation_metrics ⇒ Array<Google::Apis::LanguageV1beta2::XpsEvaluationMetrics>
Inline EvaluationMetrics - should be relatively small. For passing large
quantities of exhaustive metrics, use file_spec.
Corresponds to the JSON property evaluationMetrics
2324 2325 2326 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2324 def evaluation_metrics @evaluation_metrics end |
#file_spec ⇒ Google::Apis::LanguageV1beta2::XpsFileSpec
Spec of input and output files, on external file systems (CNS, GCS, etc).
Corresponds to the JSON property fileSpec
2329 2330 2331 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2329 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
2334 2335 2336 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2334 def num_evaluation_metrics @num_evaluation_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2341 2342 2343 2344 2345 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2341 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 |