Class: Google::Apis::LanguageV1beta2::XpsEvaluationMetricsSet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsEvaluationMetricsSet

Returns a new instance of XpsEvaluationMetricsSet.



2329
2330
2331
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2329

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#evaluation_metricsArray<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



2316
2317
2318
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2316

def evaluation_metrics
  @evaluation_metrics
end

#file_specGoogle::Apis::LanguageV1beta2::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



2322
2323
2324
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2322

def file_spec
  @file_spec
end

#num_evaluation_metricsFixnum

Number of the evaluation metrics (usually one per label plus overall). Corresponds to the JSON property numEvaluationMetrics

Returns:

  • (Fixnum)


2327
2328
2329
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2327

def num_evaluation_metrics
  @num_evaluation_metrics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2334
2335
2336
2337
2338
# File 'lib/google/apis/language_v1beta2/classes.rb', line 2334

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