Class: Google::Apis::LanguageV1beta2::XpsRegressionMetricsEntry

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

A pair of actual & observed values for the model being evaluated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsRegressionMetricsEntry

Returns a new instance of XpsRegressionMetricsEntry.



3236
3237
3238
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3236

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

Instance Attribute Details

#predicted_valueFloat

The observed value for a row in the dataset. Corresponds to the JSON property predictedValue

Returns:

  • (Float)


3229
3230
3231
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3229

def predicted_value
  @predicted_value
end

#true_valueFloat

The actual target value for a row in the dataset. Corresponds to the JSON property trueValue

Returns:

  • (Float)


3234
3235
3236
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3234

def true_value
  @true_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3241
3242
3243
3244
# File 'lib/google/apis/language_v1beta2/classes.rb', line 3241

def update!(**args)
  @predicted_value = args[:predicted_value] if args.key?(:predicted_value)
  @true_value = args[:true_value] if args.key?(:true_value)
end