Class: AWS.ForecastService
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.ForecastService
- Identifier:
- forecastservice
- API Version:
- 2018-06-26
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Provides APIs for creating and managing Amazon Forecast resources.
Sending a Request Using ForecastService
var forecastservice = new AWS.ForecastService();
forecastservice.createAutoPredictor(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the ForecastService object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var forecastservice = new AWS.ForecastService({apiVersion: '2018-06-26'});
You can also set the API version globally in AWS.config.apiVersions using
the forecastservice service identifier:
AWS.config.apiVersions = {
forecastservice: '2018-06-26',
// other service API versions
};
var forecastservice = new AWS.ForecastService();
Constructor Summary collapse
-
new AWS.ForecastService(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createAutoPredictor(params = {}, callback) ⇒ AWS.Request
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.
-
createDataset(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Forecast dataset.
-
createDatasetGroup(params = {}, callback) ⇒ AWS.Request
Creates a dataset group, which holds a collection of related datasets.
-
createDatasetImportJob(params = {}, callback) ⇒ AWS.Request
Imports your training data to an Amazon Forecast dataset.
-
createExplainability(params = {}, callback) ⇒ AWS.Request
Note: Explainability is only available for Forecasts and Predictors generated from an AutoPredictor (CreateAutoPredictor)
Creates an Amazon Forecast Explainability.
Explainability helps you better understand how the attributes in your datasets impact forecast.
-
createExplainabilityExport(params = {}, callback) ⇒ AWS.Request
Exports an Explainability resource created by the CreateExplainability operation.
-
createForecast(params = {}, callback) ⇒ AWS.Request
Creates a forecast for each item in the
TARGET_TIME_SERIESdataset that was used to train the predictor. -
createForecastExportJob(params = {}, callback) ⇒ AWS.Request
Exports a forecast created by the CreateForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket.
-
createMonitor(params = {}, callback) ⇒ AWS.Request
Creates a predictor monitor resource for an existing auto predictor.
-
createPredictor(params = {}, callback) ⇒ AWS.Request
Note: This operation creates a legacy predictor that does not include all the predictor functionalities provided by Amazon Forecast.
- createPredictorBacktestExportJob(params = {}, callback) ⇒ AWS.Request
Exports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor or CreatePredictor operations.
- createWhatIfAnalysis(params = {}, callback) ⇒ AWS.Request
What-if analysis is a scenario modeling technique where you make a hypothetical change to a time series and compare the forecasts generated by these changes against the baseline, unchanged time series.
- createWhatIfForecast(params = {}, callback) ⇒ AWS.Request
A what-if forecast is a forecast that is created from a modified version of the baseline forecast.
- createWhatIfForecastExport(params = {}, callback) ⇒ AWS.Request
Exports a forecast created by the CreateWhatIfForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket.
- deleteDataset(params = {}, callback) ⇒ AWS.Request
Deletes an Amazon Forecast dataset that was created using the CreateDataset operation.
- deleteDatasetGroup(params = {}, callback) ⇒ AWS.Request
Deletes a dataset group created using the CreateDatasetGroup operation.
- deleteDatasetImportJob(params = {}, callback) ⇒ AWS.Request
Deletes a dataset import job created using the CreateDatasetImportJob operation.
- deleteExplainability(params = {}, callback) ⇒ AWS.Request
Deletes an Explainability resource.
You can delete only predictor that have a status of
ACTIVEorCREATE_FAILED.- deleteExplainabilityExport(params = {}, callback) ⇒ AWS.Request
Deletes an Explainability export.
.
- deleteForecast(params = {}, callback) ⇒ AWS.Request
Deletes a forecast created using the CreateForecast operation.
- deleteForecastExportJob(params = {}, callback) ⇒ AWS.Request
Deletes a forecast export job created using the CreateForecastExportJob operation.
- deleteMonitor(params = {}, callback) ⇒ AWS.Request
Deletes a monitor resource.
- deletePredictor(params = {}, callback) ⇒ AWS.Request
Deletes a predictor created using the DescribePredictor or CreatePredictor operations.
- deletePredictorBacktestExportJob(params = {}, callback) ⇒ AWS.Request
Deletes a predictor backtest export job.
.
- deleteResourceTree(params = {}, callback) ⇒ AWS.Request
Deletes an entire resource tree.
- deleteWhatIfAnalysis(params = {}, callback) ⇒ AWS.Request
Deletes a what-if analysis created using the CreateWhatIfAnalysis operation.
- deleteWhatIfForecast(params = {}, callback) ⇒ AWS.Request
Deletes a what-if forecast created using the CreateWhatIfForecast operation.
- deleteWhatIfForecastExport(params = {}, callback) ⇒ AWS.Request
Deletes a what-if forecast export created using the CreateWhatIfForecastExport operation.
- describeAutoPredictor(params = {}, callback) ⇒ AWS.Request
Describes a predictor created using the CreateAutoPredictor operation.
.
- describeDataset(params = {}, callback) ⇒ AWS.Request
Describes an Amazon Forecast dataset created using the CreateDataset operation.
In addition to listing the parameters specified in the
CreateDatasetrequest, this operation includes the following dataset properties:-
CreationTime -
LastModificationTime -
Status
- describeDatasetGroup(params = {}, callback) ⇒ AWS.Request
Describes a dataset group created using the CreateDatasetGroup operation.
In addition to listing the parameters provided in the
CreateDatasetGrouprequest, this operation includes the following properties:-
DatasetArns- The datasets belonging to the group. -
CreationTime -
LastModificationTime -
Status
- describeDatasetImportJob(params = {}, callback) ⇒ AWS.Request
Describes a dataset import job created using the CreateDatasetImportJob operation.
In addition to listing the parameters provided in the
CreateDatasetImportJobrequest, this operation includes the following properties:-
CreationTime -
LastModificationTime -
DataSize -
FieldStatistics -
Status -
Message- If an error occurred, information about the error.
- describeExplainability(params = {}, callback) ⇒ AWS.Request
Describes an Explainability resource created using the CreateExplainability operation.
.
- describeExplainabilityExport(params = {}, callback) ⇒ AWS.Request
Describes an Explainability export created using the CreateExplainabilityExport operation.
.
- describeForecast(params = {}, callback) ⇒ AWS.Request
Describes a forecast created using the CreateForecast operation.
In addition to listing the properties provided in the
CreateForecastrequest, this operation lists the following properties:-
DatasetGroupArn- The dataset group that provided the training data. -
CreationTime -
LastModificationTime -
Status -
Message- If an error occurred, information about the error.
- describeForecastExportJob(params = {}, callback) ⇒ AWS.Request
Describes a forecast export job created using the CreateForecastExportJob operation.
In addition to listing the properties provided by the user in the
CreateForecastExportJobrequest, this operation lists the following properties:-
CreationTime -
LastModificationTime -
Status -
Message- If an error occurred, information about the error.
- describeMonitor(params = {}, callback) ⇒ AWS.Request
Describes a monitor resource.
- describePredictor(params = {}, callback) ⇒ AWS.Request
Note: This operation is only valid for legacy predictors created with CreatePredictor.- describePredictorBacktestExportJob(params = {}, callback) ⇒ AWS.Request
Describes a predictor backtest export job created using the CreatePredictorBacktestExportJob operation.
In addition to listing the properties provided by the user in the
CreatePredictorBacktestExportJobrequest, this operation lists the following properties:-
CreationTime -
LastModificationTime -
Status -
Message(if an error occurred)
- describeWhatIfAnalysis(params = {}, callback) ⇒ AWS.Request
Describes the what-if analysis created using the CreateWhatIfAnalysis operation.
In addition to listing the properties provided in the
CreateWhatIfAnalysisrequest, this operation lists the following properties:-
CreationTime -
LastModificationTime -
Message- If an error occurred, information about the error. -
Status
- describeWhatIfForecast(params = {}, callback) ⇒ AWS.Request
Describes the what-if forecast created using the CreateWhatIfForecast operation.
In addition to listing the properties provided in the
CreateWhatIfForecastrequest, this operation lists the following properties:-
CreationTime -
LastModificationTime -
Message- If an error occurred, information about the error. -
Status
- describeWhatIfForecastExport(params = {}, callback) ⇒ AWS.Request
Describes the what-if forecast export created using the CreateWhatIfForecastExport operation.
In addition to listing the properties provided in the
CreateWhatIfForecastExportrequest, this operation lists the following properties:-
CreationTime -
LastModificationTime -
Message- If an error occurred, information about the error. -
Status
- getAccuracyMetrics(params = {}, callback) ⇒ AWS.Request
Provides metrics on the accuracy of the models that were trained by the CreatePredictor operation.
- listDatasetGroups(params = {}, callback) ⇒ AWS.Request
Returns a list of dataset groups created using the CreateDatasetGroup operation.
- listDatasetImportJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of dataset import jobs created using the CreateDatasetImportJob operation.
- listDatasets(params = {}, callback) ⇒ AWS.Request
Returns a list of datasets created using the CreateDataset operation.
- listExplainabilities(params = {}, callback) ⇒ AWS.Request
Returns a list of Explainability resources created using the CreateExplainability operation.
- listExplainabilityExports(params = {}, callback) ⇒ AWS.Request
Returns a list of Explainability exports created using the CreateExplainabilityExport operation.
- listForecastExportJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of forecast export jobs created using the CreateForecastExportJob operation.
- listForecasts(params = {}, callback) ⇒ AWS.Request
Returns a list of forecasts created using the CreateForecast operation.
- listMonitorEvaluations(params = {}, callback) ⇒ AWS.Request
Returns a list of the monitoring evaluation results and predictor events collected by the monitor resource during different windows of time.
For information about monitoring see predictor-monitoring.
- listMonitors(params = {}, callback) ⇒ AWS.Request
Returns a list of monitors created with the CreateMonitor operation and CreateAutoPredictor operation.
- listPredictorBacktestExportJobs(params = {}, callback) ⇒ AWS.Request
Returns a list of predictor backtest export jobs created using the CreatePredictorBacktestExportJob operation.
- listPredictors(params = {}, callback) ⇒ AWS.Request
Returns a list of predictors created using the CreateAutoPredictor or CreatePredictor operations.
- listTagsForResource(params = {}, callback) ⇒ AWS.Request
Lists the tags for an Amazon Forecast resource.
.
- listWhatIfAnalyses(params = {}, callback) ⇒ AWS.Request
Returns a list of what-if analyses created using the CreateWhatIfAnalysis operation.
- listWhatIfForecastExports(params = {}, callback) ⇒ AWS.Request
Returns a list of what-if forecast exports created using the CreateWhatIfForecastExport operation.
- listWhatIfForecasts(params = {}, callback) ⇒ AWS.Request
Returns a list of what-if forecasts created using the CreateWhatIfForecast operation.
- resumeResource(params = {}, callback) ⇒ AWS.Request
Resumes a stopped monitor resource.
.
- stopResource(params = {}, callback) ⇒ AWS.Request
Stops a resource.
The resource undergoes the following states:
CREATE_STOPPINGandCREATE_STOPPED.- tagResource(params = {}, callback) ⇒ AWS.Request
Associates the specified tags to a resource with the specified
resourceArn.- untagResource(params = {}, callback) ⇒ AWS.Request
Deletes the specified tags from a resource.
.
- updateDatasetGroup(params = {}, callback) ⇒ AWS.Request
Replaces the datasets in a dataset group with the specified datasets.
Note: TheStatusof the dataset group must beACTIVEbefore you can use the dataset group to create a predictor.Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.ForecastService(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
createAutoPredictor(params = {}, callback) ⇒ AWS.Request
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
ReferencePredictorArnandPredictorName.createDataset(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Forecast dataset. The information about the dataset that you provide helps Forecast understand how to consume the data for model training. This includes the following:
-
DataFrequency- How frequently your historical time-series data is collected. -
DomainandDatasetType- Each dataset has an associated dataset domain and a type within the domain. Amazon Forecast provides a list of predefined domains and types within each domain. For each unique dataset domain and type within the domain, Amazon Forecast requires your data to include a minimum set of predefined fields. -
Schema- A schema specifies the fields in the dataset, including the field name and data type.
After creating a dataset, you import your training data into it and add the dataset to a dataset group. You use the dataset group to create a predictor. For more information, see Importing datasets.
To get a list of all your datasets, use the ListDatasets operation.
For example Forecast datasets, see the Amazon Forecast Sample GitHub repository.
Note: TheStatusof a dataset must beACTIVEbefore you can import training data. Use the DescribeDataset operation to get the status. - createPredictorBacktestExportJob(params = {}, callback) ⇒ AWS.Request