amazonka-forecast-2.0: Amazon Forecast Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Forecast.GetAccuracyMetrics

Description

Provides metrics on the accuracy of the models that were trained by the CreatePredictor operation. Use metrics to see how well the model performed and to decide whether to use the predictor to generate a forecast. For more information, see Predictor Metrics.

This operation generates metrics for each backtest window that was evaluated. The number of backtest windows (NumberOfBacktestWindows) is specified using the EvaluationParameters object, which is optionally included in the CreatePredictor request. If NumberOfBacktestWindows isn't specified, the number defaults to one.

The parameters of the filling method determine which items contribute to the metrics. If you want all items to contribute, specify zero. If you want only those items that have complete data in the range being evaluated to contribute, specify nan. For more information, see FeaturizationMethod.

Before you can get accuracy metrics, the Status of the predictor must be ACTIVE, signifying that training has completed. To get the status, use the DescribePredictor operation.

Synopsis

Creating a Request

data GetAccuracyMetrics Source #

See: newGetAccuracyMetrics smart constructor.

Constructors

GetAccuracyMetrics' 

Fields

  • predictorArn :: Text

    The Amazon Resource Name (ARN) of the predictor to get metrics for.

Instances

Instances details
ToJSON GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

ToHeaders GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

ToPath GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

ToQuery GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

AWSRequest GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Associated Types

type AWSResponse GetAccuracyMetrics #

Generic GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Associated Types

type Rep GetAccuracyMetrics :: Type -> Type #

Read GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Show GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

NFData GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Methods

rnf :: GetAccuracyMetrics -> () #

Eq GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Hashable GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

type AWSResponse GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

type Rep GetAccuracyMetrics Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

type Rep GetAccuracyMetrics = D1 ('MetaData "GetAccuracyMetrics" "Amazonka.Forecast.GetAccuracyMetrics" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "GetAccuracyMetrics'" 'PrefixI 'True) (S1 ('MetaSel ('Just "predictorArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetAccuracyMetrics Source #

Create a value of GetAccuracyMetrics 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:

GetAccuracyMetrics, getAccuracyMetrics_predictorArn - The Amazon Resource Name (ARN) of the predictor to get metrics for.

Request Lenses

getAccuracyMetrics_predictorArn :: Lens' GetAccuracyMetrics Text Source #

The Amazon Resource Name (ARN) of the predictor to get metrics for.

Destructuring the Response

data GetAccuracyMetricsResponse Source #

See: newGetAccuracyMetricsResponse smart constructor.

Constructors

GetAccuracyMetricsResponse' 

Fields

Instances

Instances details
Generic GetAccuracyMetricsResponse Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Associated Types

type Rep GetAccuracyMetricsResponse :: Type -> Type #

Read GetAccuracyMetricsResponse Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Show GetAccuracyMetricsResponse Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

NFData GetAccuracyMetricsResponse Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

Eq GetAccuracyMetricsResponse Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

type Rep GetAccuracyMetricsResponse Source # 
Instance details

Defined in Amazonka.Forecast.GetAccuracyMetrics

type Rep GetAccuracyMetricsResponse = D1 ('MetaData "GetAccuracyMetricsResponse" "Amazonka.Forecast.GetAccuracyMetrics" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "GetAccuracyMetricsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoMLOverrideStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoMLOverrideStrategy)) :*: S1 ('MetaSel ('Just "isAutoPredictor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "optimizationMetric") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OptimizationMetric)) :*: (S1 ('MetaSel ('Just "predictorEvaluationResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EvaluationResult])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetAccuracyMetricsResponse Source #

Create a value of GetAccuracyMetricsResponse 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:autoMLOverrideStrategy:GetAccuracyMetricsResponse', getAccuracyMetricsResponse_autoMLOverrideStrategy - The LatencyOptimized AutoML override strategy is only available in private beta. Contact AWS Support or your account manager to learn more about access privileges.

The AutoML strategy used to train the predictor. Unless LatencyOptimized is specified, the AutoML strategy optimizes predictor accuracy.

This parameter is only valid for predictors trained using AutoML.

GetAccuracyMetricsResponse, getAccuracyMetricsResponse_isAutoPredictor - Whether the predictor was created with CreateAutoPredictor.

$sel:optimizationMetric:GetAccuracyMetricsResponse', getAccuracyMetricsResponse_optimizationMetric - The accuracy metric used to optimize the predictor.

$sel:predictorEvaluationResults:GetAccuracyMetricsResponse', getAccuracyMetricsResponse_predictorEvaluationResults - An array of results from evaluating the predictor.

$sel:httpStatus:GetAccuracyMetricsResponse', getAccuracyMetricsResponse_httpStatus - The response's http status code.

Response Lenses

getAccuracyMetricsResponse_autoMLOverrideStrategy :: Lens' GetAccuracyMetricsResponse (Maybe AutoMLOverrideStrategy) Source #

The LatencyOptimized AutoML override strategy is only available in private beta. Contact AWS Support or your account manager to learn more about access privileges.

The AutoML strategy used to train the predictor. Unless LatencyOptimized is specified, the AutoML strategy optimizes predictor accuracy.

This parameter is only valid for predictors trained using AutoML.

getAccuracyMetricsResponse_isAutoPredictor :: Lens' GetAccuracyMetricsResponse (Maybe Bool) Source #

Whether the predictor was created with CreateAutoPredictor.