Class: Google::Apis::LanguageV2::XpsTablesRegressionMetrics

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

Metrics for Tables regression problems.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsTablesRegressionMetrics

Returns a new instance of XpsTablesRegressionMetrics.



3914
3915
3916
# File 'lib/google/apis/language_v2/classes.rb', line 3914

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

Instance Attribute Details

#mean_absolute_errorFloat

Mean absolute error. Corresponds to the JSON property meanAbsoluteError

Returns:

  • (Float)


3886
3887
3888
# File 'lib/google/apis/language_v2/classes.rb', line 3886

def mean_absolute_error
  @mean_absolute_error
end

#mean_absolute_percentage_errorFloat

Mean absolute percentage error, only set if all of the target column's values are positive. Corresponds to the JSON property meanAbsolutePercentageError

Returns:

  • (Float)


3892
3893
3894
# File 'lib/google/apis/language_v2/classes.rb', line 3892

def mean_absolute_percentage_error
  @mean_absolute_percentage_error
end

#r_squaredFloat

R squared. Corresponds to the JSON property rSquared

Returns:

  • (Float)


3897
3898
3899
# File 'lib/google/apis/language_v2/classes.rb', line 3897

def r_squared
  @r_squared
end

#regression_metrics_entriesArray<Google::Apis::LanguageV2::XpsRegressionMetricsEntry>

A list of actual versus predicted points for the model being evaluated. Corresponds to the JSON property regressionMetricsEntries



3902
3903
3904
# File 'lib/google/apis/language_v2/classes.rb', line 3902

def regression_metrics_entries
  @regression_metrics_entries
end

#root_mean_squared_errorFloat

Root mean squared error. Corresponds to the JSON property rootMeanSquaredError

Returns:

  • (Float)


3907
3908
3909
# File 'lib/google/apis/language_v2/classes.rb', line 3907

def root_mean_squared_error
  @root_mean_squared_error
end

#root_mean_squared_log_errorFloat

Root mean squared log error. Corresponds to the JSON property rootMeanSquaredLogError

Returns:

  • (Float)


3912
3913
3914
# File 'lib/google/apis/language_v2/classes.rb', line 3912

def root_mean_squared_log_error
  @root_mean_squared_log_error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3919
3920
3921
3922
3923
3924
3925
3926
# File 'lib/google/apis/language_v2/classes.rb', line 3919

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