Class: Google::Apis::BigqueryV2::ArimaSingleModelForecastingMetrics

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb

Overview

Model evaluation metrics for a single ARIMA forecasting model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ArimaSingleModelForecastingMetrics

Returns a new instance of ArimaSingleModelForecastingMetrics.


389
390
391
# File 'generated/google/apis/bigquery_v2/classes.rb', line 389

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

Instance Attribute Details

#arima_fitting_metricsGoogle::Apis::BigqueryV2::ArimaFittingMetrics

ARIMA model fitting metrics. Corresponds to the JSON property arimaFittingMetrics


365
366
367
# File 'generated/google/apis/bigquery_v2/classes.rb', line 365

def arima_fitting_metrics
  @arima_fitting_metrics
end

#has_driftBoolean Also known as: has_drift?

Is arima model fitted with drift or not. It is always false when d is not 1. Corresponds to the JSON property hasDrift

Returns:

  • (Boolean)

370
371
372
# File 'generated/google/apis/bigquery_v2/classes.rb', line 370

def has_drift
  @has_drift
end

#non_seasonal_orderGoogle::Apis::BigqueryV2::ArimaOrder

Arima order, can be used for both non-seasonal and seasonal parts. Corresponds to the JSON property nonSeasonalOrder


376
377
378
# File 'generated/google/apis/bigquery_v2/classes.rb', line 376

def non_seasonal_order
  @non_seasonal_order
end

#seasonal_periodsArray<String>

Seasonal periods. Repeated because multiple periods are supported for one time series. Corresponds to the JSON property seasonalPeriods

Returns:

  • (Array<String>)

382
383
384
# File 'generated/google/apis/bigquery_v2/classes.rb', line 382

def seasonal_periods
  @seasonal_periods
end

#time_series_idString

The id to indicate different time series. Corresponds to the JSON property timeSeriesId

Returns:

  • (String)

387
388
389
# File 'generated/google/apis/bigquery_v2/classes.rb', line 387

def time_series_id
  @time_series_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


394
395
396
397
398
399
400
# File 'generated/google/apis/bigquery_v2/classes.rb', line 394

def update!(**args)
  @arima_fitting_metrics = args[:arima_fitting_metrics] if args.key?(:arima_fitting_metrics)
  @has_drift = args[:has_drift] if args.key?(:has_drift)
  @non_seasonal_order = args[:non_seasonal_order] if args.key?(:non_seasonal_order)
  @seasonal_periods = args[:seasonal_periods] if args.key?(:seasonal_periods)
  @time_series_id = args[:time_series_id] if args.key?(:time_series_id)
end