Skip to main content

auto_predictors

Creates, updates, deletes, gets or lists an auto_predictors resource.

Overview

Nameauto_predictors
TypeResource
Idaws.forecast.auto_predictors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The timestamp of the CreateAutoPredictor request.
data_configobjectThe data configuration for your dataset group and any additional datasets.
dataset_import_job_arnsarrayAn array of the ARNs of the dataset import jobs used to import training data for the predictor.
encryption_configobjectAn Key Management Service (KMS) key and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key. You can specify this optional object in the CreateDataset and CreatePredictor requests.
estimated_time_remaining_in_minutesinteger (int64)The estimated time remaining in minutes for the predictor training job to complete.
explainability_infoobjectProvides the status and ARN of the Predictor Explainability.
forecast_dimensionsarrayAn array of dimension (field) names that specify the attributes used to group your time series.
forecast_frequencystringThe frequency of predictions in a forecast. Valid intervals are Y (Year), M (Month), W (Week), D (Day), H (Hour), 30min (30 minutes), 15min (15 minutes), 10min (10 minutes), 5min (5 minutes), and 1min (1 minute). For example, "Y" indicates every year and "5min" indicates every five minutes. (pattern: <code>^Y|M|W|D|H|30min|15min|10min|5min|1min$</code>)
forecast_horizonintegerThe number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
forecast_typesarrayThe forecast types used during predictor training. Default value is ["0.1","0.5","0.9"].
last_modification_timestring (date-time)The last time the resource was modified. The timestamp depends on the status of the job: CREATE_PENDING - The CreationTime. CREATE_IN_PROGRESS - The current timestamp. CREATE_STOPPING - The current timestamp. CREATE_STOPPED - When the job stopped. ACTIVE or CREATE_FAILED - When the job finished or failed.
messagestringIn the event of an error, a message detailing the cause of the error.
monitor_infoobjectA object with the Amazon Resource Name (ARN) and status of the monitor resource.
optimization_metricstringThe accuracy metric used to optimize the predictor. (WAPE, RMSE, AverageWeightedQuantileLoss, MASE, MAPE)
predictor_arnstringThe Amazon Resource Name (ARN) of the predictor (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>)
predictor_namestringThe name of the predictor. (pattern: <code>^[a-zA-Z][a-zA-Z0-9_]*</code>)
reference_predictor_summaryobjectThe ARN and state of the reference predictor. This parameter is only valid for retrained or upgraded predictors.
statusstringThe status of the predictor. States include: ACTIVE CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED CREATE_STOPPING, CREATE_STOPPED DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED
time_alignment_boundaryobjectThe time boundary Forecast uses when aggregating data.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_auto_predictorselectregionDescribes a predictor created using the CreateAutoPredictor operation.
create_auto_predictorinsertregion, PredictorNameCreates an Amazon Forecast predictor. Amazon Forecast creates predictors with AutoPredictor, which involves applying the optimal combination of algorithms to each time series in your datasets. You can use CreateAutoPredictor to create new predictors or upgrade/retrain existing predictors. Creating new predictors The following parameters are required when creating a new predictor: PredictorName - A unique name for the predictor. DatasetGroupArn - The ARN of the dataset group used to train the predictor. ForecastFrequency - The granularity of your forecasts (hourly, daily, weekly, etc). ForecastHorizon - The number of time-steps that the model predicts. The forecast horizon is also called the prediction length. When creating a new predictor, do not specify a value for ReferencePredictorArn. Upgrading and retraining predictors The following parameters are required when retraining or upgrading a predictor: PredictorName - A unique name for the predictor. ReferencePredictorArn - The ARN of the predictor to retrain or upgrade. When upgrading or retraining a predictor, only specify values for the ReferencePredictorArn and PredictorName.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes a predictor created using the CreateAutoPredictor operation.

SELECT
creation_time,
data_config,
dataset_import_job_arns,
encryption_config,
estimated_time_remaining_in_minutes,
explainability_info,
forecast_dimensions,
forecast_frequency,
forecast_horizon,
forecast_types,
last_modification_time,
message,
monitor_info,
optimization_metric,
predictor_arn,
predictor_name,
reference_predictor_summary,
status,
time_alignment_boundary
FROM aws.forecast.auto_predictors
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon Forecast predictor. Amazon Forecast creates predictors with AutoPredictor, which involves applying the optimal combination of algorithms to each time series in your datasets. You can use CreateAutoPredictor to create new predictors or upgrade/retrain existing predictors. Creating new predictors The following parameters are required when creating a new predictor: PredictorName - A unique name for the predictor. DatasetGroupArn - The ARN of the dataset group used to train the predictor. ForecastFrequency - The granularity of your forecasts (hourly, daily, weekly, etc). ForecastHorizon - The number of time-steps that the model predicts. The forecast horizon is also called the prediction length. When creating a new predictor, do not specify a value for ReferencePredictorArn. Upgrading and retraining predictors The following parameters are required when retraining or upgrading a predictor: PredictorName - A unique name for the predictor. ReferencePredictorArn - The ARN of the predictor to retrain or upgrade. When upgrading or retraining a predictor, only specify values for the ReferencePredictorArn and PredictorName.

INSERT INTO aws.forecast.auto_predictors (
PredictorName,
ForecastHorizon,
ForecastTypes,
ForecastDimensions,
ForecastFrequency,
DataConfig,
EncryptionConfig,
ReferencePredictorArn,
OptimizationMetric,
ExplainPredictor,
Tags,
MonitorConfig,
TimeAlignmentBoundary,
region
)
SELECT
'{{ PredictorName }}' /* required */,
{{ ForecastHorizon }},
'{{ ForecastTypes }}',
'{{ ForecastDimensions }}',
'{{ ForecastFrequency }}',
'{{ DataConfig }}',
'{{ EncryptionConfig }}',
'{{ ReferencePredictorArn }}',
'{{ OptimizationMetric }}',
{{ ExplainPredictor }},
'{{ Tags }}',
'{{ MonitorConfig }}',
'{{ TimeAlignmentBoundary }}',
'{{ region }}'
RETURNING
predictor_arn
;