Class: Google::Apis::LanguageV2::XpsRegressionMetricsEntry
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV2::XpsRegressionMetricsEntry
- 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
A pair of actual & observed values for the model being evaluated.
Instance Attribute Summary collapse
-
#predicted_value ⇒ Float
The observed value for a row in the dataset.
-
#true_value ⇒ Float
The actual target value for a row in the dataset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsRegressionMetricsEntry
constructor
A new instance of XpsRegressionMetricsEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsRegressionMetricsEntry
Returns a new instance of XpsRegressionMetricsEntry.
2930 2931 2932 |
# File 'lib/google/apis/language_v2/classes.rb', line 2930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#predicted_value ⇒ Float
The observed value for a row in the dataset.
Corresponds to the JSON property predictedValue
2923 2924 2925 |
# File 'lib/google/apis/language_v2/classes.rb', line 2923 def predicted_value @predicted_value end |
#true_value ⇒ Float
The actual target value for a row in the dataset.
Corresponds to the JSON property trueValue
2928 2929 2930 |
# File 'lib/google/apis/language_v2/classes.rb', line 2928 def true_value @true_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2935 2936 2937 2938 |
# File 'lib/google/apis/language_v2/classes.rb', line 2935 def update!(**args) @predicted_value = args[:predicted_value] if args.key?(:predicted_value) @true_value = args[:true_value] if args.key?(:true_value) end |