Class: Google::Apis::LanguageV1::XpsEvaluationMetricsSet
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::XpsEvaluationMetricsSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb
Overview
Specifies location of model evaluation metrics.
Instance Attribute Summary collapse
-
#evaluation_metrics ⇒ Array<Google::Apis::LanguageV1::XpsEvaluationMetrics>
Inline EvaluationMetrics - should be relatively small.
-
#file_spec ⇒ Google::Apis::LanguageV1::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.
2316 2317 2318 |
# File 'lib/google/apis/language_v1/classes.rb', line 2316 def initialize(**args) update!(**args) end |
Instance Attribute Details
#evaluation_metrics ⇒ Array<Google::Apis::LanguageV1::XpsEvaluationMetrics>
Inline EvaluationMetrics - should be relatively small. For passing large
quantities of exhaustive metrics, use file_spec.
Corresponds to the JSON property evaluationMetrics
2304 2305 2306 |
# File 'lib/google/apis/language_v1/classes.rb', line 2304 def evaluation_metrics @evaluation_metrics end |
#file_spec ⇒ Google::Apis::LanguageV1::XpsFileSpec
Spec of input and output files, on external file systems (CNS, GCS, etc).
Corresponds to the JSON property fileSpec
2309 2310 2311 |
# File 'lib/google/apis/language_v1/classes.rb', line 2309 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
2314 2315 2316 |
# File 'lib/google/apis/language_v1/classes.rb', line 2314 def num_evaluation_metrics @num_evaluation_metrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2321 2322 2323 2324 2325 |
# File 'lib/google/apis/language_v1/classes.rb', line 2321 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 |