Class: Google::Apis::LanguageV1::XpsRegressionEvaluationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1::XpsRegressionEvaluationMetrics
- 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
Model evaluation metrics for regression problems. It can be used for Tables.
Instance Attribute Summary collapse
-
#mean_absolute_error ⇒ Float
Mean Absolute Error (MAE).
-
#mean_absolute_percentage_error ⇒ Float
Mean absolute percentage error.
-
#r_squared ⇒ Float
R squared.
-
#regression_metrics_entries ⇒ Array<Google::Apis::LanguageV1::XpsRegressionMetricsEntry>
A list of actual versus predicted points for the model being evaluated.
-
#root_mean_squared_error ⇒ Float
Root Mean Squared Error (RMSE).
-
#root_mean_squared_log_error ⇒ Float
Root mean squared log error.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsRegressionEvaluationMetrics
constructor
A new instance of XpsRegressionEvaluationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsRegressionEvaluationMetrics
Returns a new instance of XpsRegressionEvaluationMetrics.
3187 3188 3189 |
# File 'lib/google/apis/language_v1/classes.rb', line 3187 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mean_absolute_error ⇒ Float
Mean Absolute Error (MAE).
Corresponds to the JSON property meanAbsoluteError
3159 3160 3161 |
# File 'lib/google/apis/language_v1/classes.rb', line 3159 def mean_absolute_error @mean_absolute_error end |
#mean_absolute_percentage_error ⇒ Float
Mean absolute percentage error. Only set if all ground truth values are
positive.
Corresponds to the JSON property meanAbsolutePercentageError
3165 3166 3167 |
# File 'lib/google/apis/language_v1/classes.rb', line 3165 def mean_absolute_percentage_error @mean_absolute_percentage_error end |
#r_squared ⇒ Float
R squared.
Corresponds to the JSON property rSquared
3170 3171 3172 |
# File 'lib/google/apis/language_v1/classes.rb', line 3170 def r_squared @r_squared end |
#regression_metrics_entries ⇒ Array<Google::Apis::LanguageV1::XpsRegressionMetricsEntry>
A list of actual versus predicted points for the model being evaluated.
Corresponds to the JSON property regressionMetricsEntries
3175 3176 3177 |
# File 'lib/google/apis/language_v1/classes.rb', line 3175 def regression_metrics_entries @regression_metrics_entries end |
#root_mean_squared_error ⇒ Float
Root Mean Squared Error (RMSE).
Corresponds to the JSON property rootMeanSquaredError
3180 3181 3182 |
# File 'lib/google/apis/language_v1/classes.rb', line 3180 def root_mean_squared_error @root_mean_squared_error end |
#root_mean_squared_log_error ⇒ Float
Root mean squared log error.
Corresponds to the JSON property rootMeanSquaredLogError
3185 3186 3187 |
# File 'lib/google/apis/language_v1/classes.rb', line 3185 def root_mean_squared_log_error @root_mean_squared_log_error end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3192 3193 3194 3195 3196 3197 3198 3199 |
# File 'lib/google/apis/language_v1/classes.rb', line 3192 def update!(**args) @mean_absolute_error = args[:mean_absolute_error] if args.key?(:mean_absolute_error) @mean_absolute_percentage_error = args[:mean_absolute_percentage_error] if args.key?(:mean_absolute_percentage_error) @r_squared = args[:r_squared] if args.key?(:r_squared) @regression_metrics_entries = args[:regression_metrics_entries] if args.key?(:regression_metrics_entries) @root_mean_squared_error = args[:root_mean_squared_error] if args.key?(:root_mean_squared_error) @root_mean_squared_log_error = args[:root_mean_squared_log_error] if args.key?(:root_mean_squared_log_error) end |