Class: Google::Apis::LanguageV1beta2::XpsTablesRegressionMetrics
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::XpsTablesRegressionMetrics
- 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
Metrics for Tables regression problems.
Instance Attribute Summary collapse
-
#mean_absolute_error ⇒ Float
Mean absolute error.
-
#mean_absolute_percentage_error ⇒ Float
Mean absolute percentage error, only set if all of the target column's values are positive.
-
#r_squared ⇒ Float
R squared.
-
#regression_metrics_entries ⇒ Array<Google::Apis::LanguageV1beta2::XpsRegressionMetricsEntry>
A list of actual versus predicted points for the model being evaluated.
-
#root_mean_squared_error ⇒ Float
Root mean squared error.
-
#root_mean_squared_log_error ⇒ Float
Root mean squared log error.
Instance Method Summary collapse
-
#initialize(**args) ⇒ XpsTablesRegressionMetrics
constructor
A new instance of XpsTablesRegressionMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ XpsTablesRegressionMetrics
Returns a new instance of XpsTablesRegressionMetrics.
4220 4221 4222 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mean_absolute_error ⇒ Float
Mean absolute error.
Corresponds to the JSON property meanAbsoluteError
4192 4193 4194 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4192 def mean_absolute_error @mean_absolute_error end |
#mean_absolute_percentage_error ⇒ Float
Mean absolute percentage error, only set if all of the target column's values
are positive.
Corresponds to the JSON property meanAbsolutePercentageError
4198 4199 4200 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4198 def mean_absolute_percentage_error @mean_absolute_percentage_error end |
#r_squared ⇒ Float
R squared.
Corresponds to the JSON property rSquared
4203 4204 4205 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4203 def r_squared @r_squared end |
#regression_metrics_entries ⇒ Array<Google::Apis::LanguageV1beta2::XpsRegressionMetricsEntry>
A list of actual versus predicted points for the model being evaluated.
Corresponds to the JSON property regressionMetricsEntries
4208 4209 4210 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4208 def regression_metrics_entries @regression_metrics_entries end |
#root_mean_squared_error ⇒ Float
Root mean squared error.
Corresponds to the JSON property rootMeanSquaredError
4213 4214 4215 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4213 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
4218 4219 4220 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4218 def root_mean_squared_log_error @root_mean_squared_log_error end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4225 4226 4227 4228 4229 4230 4231 4232 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 4225 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 |