Struct aws_sdk_forecast::client::fluent_builders::CreateAutoPredictor
source ·
[−]pub struct CreateAutoPredictor<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateAutoPredictor
.
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 being forecasted.
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
.
Implementations
impl<C, M, R> CreateAutoPredictor<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateAutoPredictor<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateAutoPredictorOutput, SdkError<CreateAutoPredictorError>> where
R::Policy: SmithyRetryPolicy<CreateAutoPredictorInputOperationOutputAlias, CreateAutoPredictorOutput, CreateAutoPredictorError, CreateAutoPredictorInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateAutoPredictorOutput, SdkError<CreateAutoPredictorError>> where
R::Policy: SmithyRetryPolicy<CreateAutoPredictorInputOperationOutputAlias, CreateAutoPredictorOutput, CreateAutoPredictorError, CreateAutoPredictorInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A unique name for the predictor
A unique name for the predictor
The number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
The number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
Appends an item to ForecastTypes
.
To override the contents of this collection use set_forecast_types
.
The forecast types used to train a predictor. You can specify up to five forecast types. Forecast types can be quantiles from 0.01 to 0.99, by increments of 0.01 or higher. You can also specify the mean forecast with mean
.
The forecast types used to train a predictor. You can specify up to five forecast types. Forecast types can be quantiles from 0.01 to 0.99, by increments of 0.01 or higher. You can also specify the mean forecast with mean
.
Appends an item to ForecastDimensions
.
To override the contents of this collection use set_forecast_dimensions
.
An array of dimension (field) names that specify how to group the generated forecast.
For example, if you are generating forecasts for item sales across all your stores, and your dataset contains a store_id
field, you would specify store_id
as a dimension to group sales forecasts for each store.
An array of dimension (field) names that specify how to group the generated forecast.
For example, if you are generating forecasts for item sales across all your stores, and your dataset contains a store_id
field, you would specify store_id
as a dimension to group sales forecasts for each store.
The 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.
The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset frequency.
When a RELATED_TIME_SERIES dataset is provided, the frequency must be equal to the RELATED_TIME_SERIES dataset frequency.
The 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.
The frequency must be greater than or equal to the TARGET_TIME_SERIES dataset frequency.
When a RELATED_TIME_SERIES dataset is provided, the frequency must be equal to the RELATED_TIME_SERIES dataset frequency.
The data configuration for your dataset group and any additional datasets.
The data configuration for your dataset group and any additional datasets.
An AWS Key Management Service (KMS) key and an AWS 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.
An AWS Key Management Service (KMS) key and an AWS 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.
The ARN of the predictor to retrain or upgrade. This parameter is only used when retraining or upgrading a predictor. When creating a new predictor, do not specify a value for this parameter.
When upgrading or retraining a predictor, only specify values for the ReferencePredictorArn
and PredictorName
. The value for PredictorName
must be a unique predictor name.
The ARN of the predictor to retrain or upgrade. This parameter is only used when retraining or upgrading a predictor. When creating a new predictor, do not specify a value for this parameter.
When upgrading or retraining a predictor, only specify values for the ReferencePredictorArn
and PredictorName
. The value for PredictorName
must be a unique predictor name.
The accuracy metric used to optimize the predictor.
The accuracy metric used to optimize the predictor.
Create an Explainability resource for the predictor.
Create an Explainability resource for the predictor.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Optional metadata to help you categorize and organize your predictors. Each tag consists of a key and an optional value, both of which you define. Tag keys and values are case sensitive.
The following restrictions apply to tags:
-
For each resource, each tag key must be unique and each tag key must have one value.
-
Maximum number of tags per resource: 50.
-
Maximum key length: 128 Unicode characters in UTF-8.
-
Maximum value length: 256 Unicode characters in UTF-8.
-
Accepted characters: all letters and numbers, spaces representable in UTF-8, and + - = . _ : / @. If your tagging schema is used across other services and resources, the character restrictions of those services also apply.
-
Key prefixes cannot include any upper or lowercase combination of
aws:
orAWS:
. Values can have this prefix. If a tag value hasaws
as its prefix but the key does not, Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix ofaws
do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.
Optional metadata to help you categorize and organize your predictors. Each tag consists of a key and an optional value, both of which you define. Tag keys and values are case sensitive.
The following restrictions apply to tags:
-
For each resource, each tag key must be unique and each tag key must have one value.
-
Maximum number of tags per resource: 50.
-
Maximum key length: 128 Unicode characters in UTF-8.
-
Maximum value length: 256 Unicode characters in UTF-8.
-
Accepted characters: all letters and numbers, spaces representable in UTF-8, and + - = . _ : / @. If your tagging schema is used across other services and resources, the character restrictions of those services also apply.
-
Key prefixes cannot include any upper or lowercase combination of
aws:
orAWS:
. Values can have this prefix. If a tag value hasaws
as its prefix but the key does not, Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix ofaws
do not count against your tags per resource limit. You cannot edit or delete tag keys with this prefix.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateAutoPredictor<C, M, R>
impl<C, M, R> Send for CreateAutoPredictor<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateAutoPredictor<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateAutoPredictor<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateAutoPredictor<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more