Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
.
Synopsis
- data CreateAutoPredictor = CreateAutoPredictor' {
- dataConfig :: Maybe DataConfig
- encryptionConfig :: Maybe EncryptionConfig
- explainPredictor :: Maybe Bool
- forecastDimensions :: Maybe (NonEmpty Text)
- forecastFrequency :: Maybe Text
- forecastHorizon :: Maybe Int
- forecastTypes :: Maybe (NonEmpty Text)
- monitorConfig :: Maybe MonitorConfig
- optimizationMetric :: Maybe OptimizationMetric
- referencePredictorArn :: Maybe Text
- tags :: Maybe [Tag]
- timeAlignmentBoundary :: Maybe TimeAlignmentBoundary
- predictorName :: Text
- newCreateAutoPredictor :: Text -> CreateAutoPredictor
- createAutoPredictor_dataConfig :: Lens' CreateAutoPredictor (Maybe DataConfig)
- createAutoPredictor_encryptionConfig :: Lens' CreateAutoPredictor (Maybe EncryptionConfig)
- createAutoPredictor_explainPredictor :: Lens' CreateAutoPredictor (Maybe Bool)
- createAutoPredictor_forecastDimensions :: Lens' CreateAutoPredictor (Maybe (NonEmpty Text))
- createAutoPredictor_forecastFrequency :: Lens' CreateAutoPredictor (Maybe Text)
- createAutoPredictor_forecastHorizon :: Lens' CreateAutoPredictor (Maybe Int)
- createAutoPredictor_forecastTypes :: Lens' CreateAutoPredictor (Maybe (NonEmpty Text))
- createAutoPredictor_monitorConfig :: Lens' CreateAutoPredictor (Maybe MonitorConfig)
- createAutoPredictor_optimizationMetric :: Lens' CreateAutoPredictor (Maybe OptimizationMetric)
- createAutoPredictor_referencePredictorArn :: Lens' CreateAutoPredictor (Maybe Text)
- createAutoPredictor_tags :: Lens' CreateAutoPredictor (Maybe [Tag])
- createAutoPredictor_timeAlignmentBoundary :: Lens' CreateAutoPredictor (Maybe TimeAlignmentBoundary)
- createAutoPredictor_predictorName :: Lens' CreateAutoPredictor Text
- data CreateAutoPredictorResponse = CreateAutoPredictorResponse' {
- predictorArn :: Maybe Text
- httpStatus :: Int
- newCreateAutoPredictorResponse :: Int -> CreateAutoPredictorResponse
- createAutoPredictorResponse_predictorArn :: Lens' CreateAutoPredictorResponse (Maybe Text)
- createAutoPredictorResponse_httpStatus :: Lens' CreateAutoPredictorResponse Int
Creating a Request
data CreateAutoPredictor Source #
See: newCreateAutoPredictor
smart constructor.
CreateAutoPredictor' | |
|
Instances
newCreateAutoPredictor Source #
Create a value of CreateAutoPredictor
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dataConfig:CreateAutoPredictor'
, createAutoPredictor_dataConfig
- The data configuration for your dataset group and any additional
datasets.
$sel:encryptionConfig:CreateAutoPredictor'
, createAutoPredictor_encryptionConfig
- Undocumented member.
$sel:explainPredictor:CreateAutoPredictor'
, createAutoPredictor_explainPredictor
- Create an Explainability resource for the predictor.
CreateAutoPredictor
, createAutoPredictor_forecastDimensions
- 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.
CreateAutoPredictor
, createAutoPredictor_forecastFrequency
- 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.
$sel:forecastHorizon:CreateAutoPredictor'
, createAutoPredictor_forecastHorizon
- The number of time-steps that the model predicts. The forecast horizon
is also called the prediction length.
The maximum forecast horizon is the lesser of 500 time-steps or 1/4 of the TARGET_TIME_SERIES dataset length. If you are retraining an existing AutoPredictor, then the maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the TARGET_TIME_SERIES dataset length.
If you are upgrading to an AutoPredictor or retraining an existing AutoPredictor, you cannot update the forecast horizon parameter. You can meet this requirement by providing longer time-series in the dataset.
$sel:forecastTypes:CreateAutoPredictor'
, createAutoPredictor_forecastTypes
- 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
.
$sel:monitorConfig:CreateAutoPredictor'
, createAutoPredictor_monitorConfig
- The configuration details for predictor monitoring. Provide a name for
the monitor resource to enable predictor monitoring.
Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.
$sel:optimizationMetric:CreateAutoPredictor'
, createAutoPredictor_optimizationMetric
- The accuracy metric used to optimize the predictor.
$sel:referencePredictorArn:CreateAutoPredictor'
, createAutoPredictor_referencePredictorArn
- 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.
$sel:tags:CreateAutoPredictor'
, createAutoPredictor_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.
$sel:timeAlignmentBoundary:CreateAutoPredictor'
, createAutoPredictor_timeAlignmentBoundary
- The time boundary Forecast uses to align and aggregate any data that
doesn't align with your forecast frequency. Provide the unit of time
and the time boundary as a key value pair. For more information on
specifying a time boundary, see
Specifying a Time Boundary.
If you don't provide a time boundary, Forecast uses a set of
Default Time Boundaries.
CreateAutoPredictor
, createAutoPredictor_predictorName
- A unique name for the predictor
Request Lenses
createAutoPredictor_dataConfig :: Lens' CreateAutoPredictor (Maybe DataConfig) Source #
The data configuration for your dataset group and any additional datasets.
createAutoPredictor_encryptionConfig :: Lens' CreateAutoPredictor (Maybe EncryptionConfig) Source #
Undocumented member.
createAutoPredictor_explainPredictor :: Lens' CreateAutoPredictor (Maybe Bool) Source #
Create an Explainability resource for the predictor.
createAutoPredictor_forecastDimensions :: Lens' CreateAutoPredictor (Maybe (NonEmpty Text)) Source #
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.
createAutoPredictor_forecastFrequency :: Lens' CreateAutoPredictor (Maybe Text) Source #
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.
createAutoPredictor_forecastHorizon :: Lens' CreateAutoPredictor (Maybe Int) Source #
The number of time-steps that the model predicts. The forecast horizon is also called the prediction length.
The maximum forecast horizon is the lesser of 500 time-steps or 1/4 of the TARGET_TIME_SERIES dataset length. If you are retraining an existing AutoPredictor, then the maximum forecast horizon is the lesser of 500 time-steps or 1/3 of the TARGET_TIME_SERIES dataset length.
If you are upgrading to an AutoPredictor or retraining an existing AutoPredictor, you cannot update the forecast horizon parameter. You can meet this requirement by providing longer time-series in the dataset.
createAutoPredictor_forecastTypes :: Lens' CreateAutoPredictor (Maybe (NonEmpty Text)) Source #
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
.
createAutoPredictor_monitorConfig :: Lens' CreateAutoPredictor (Maybe MonitorConfig) Source #
The configuration details for predictor monitoring. Provide a name for the monitor resource to enable predictor monitoring.
Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.
createAutoPredictor_optimizationMetric :: Lens' CreateAutoPredictor (Maybe OptimizationMetric) Source #
The accuracy metric used to optimize the predictor.
createAutoPredictor_referencePredictorArn :: Lens' CreateAutoPredictor (Maybe Text) Source #
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.
createAutoPredictor_tags :: Lens' CreateAutoPredictor (Maybe [Tag]) Source #
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.
createAutoPredictor_timeAlignmentBoundary :: Lens' CreateAutoPredictor (Maybe TimeAlignmentBoundary) Source #
The time boundary Forecast uses to align and aggregate any data that doesn't align with your forecast frequency. Provide the unit of time and the time boundary as a key value pair. For more information on specifying a time boundary, see Specifying a Time Boundary. If you don't provide a time boundary, Forecast uses a set of Default Time Boundaries.
createAutoPredictor_predictorName :: Lens' CreateAutoPredictor Text Source #
A unique name for the predictor
Destructuring the Response
data CreateAutoPredictorResponse Source #
See: newCreateAutoPredictorResponse
smart constructor.
CreateAutoPredictorResponse' | |
|
Instances
newCreateAutoPredictorResponse Source #
Create a value of CreateAutoPredictorResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateAutoPredictorResponse
, createAutoPredictorResponse_predictorArn
- The Amazon Resource Name (ARN) of the predictor.
$sel:httpStatus:CreateAutoPredictorResponse'
, createAutoPredictorResponse_httpStatus
- The response's http status code.
Response Lenses
createAutoPredictorResponse_predictorArn :: Lens' CreateAutoPredictorResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the predictor.
createAutoPredictorResponse_httpStatus :: Lens' CreateAutoPredictorResponse Int Source #
The response's http status code.