@SdkInternalApi
    final GetAccuracyMetricsResult executeGetAccuracyMetrics(GetAccuracyMetricsRequest getAccuracyMetricsRequest) {

        ExecutionContext executionContext = createExecutionContext(getAccuracyMetricsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<GetAccuracyMetricsRequest> request = null;
        Response<GetAccuracyMetricsResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new GetAccuracyMetricsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(getAccuracyMetricsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "forecast");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAccuracyMetrics");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<GetAccuracyMetricsResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new GetAccuracyMetricsResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Provides metrics on the accuracy of the models that were trained by the <a>CreatePredictor</a> 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 <a href="https://docs.aws.amazon.com/forecast/latest/dg/metrics.html">Predictor
Metrics</a>.
</p>
<p>
This operation generates metrics for each backtest window that was evaluated. The number of backtest windows (
<code>NumberOfBacktestWindows</code>) is specified using the <a>EvaluationParameters</a> object, which is
optionally included in the <code>CreatePredictor</code> request. If <code>NumberOfBacktestWindows</code> isn't
specified, the number defaults to one.
</p>
<p>
The parameters of the <code>filling</code> method determine which items contribute to the metrics. If you want
all items to contribute, specify <code>zero</code>. If you want only those items that have complete data in the
range being evaluated to contribute, specify <code>nan</code>. For more information, see
<a>FeaturizationMethod</a>.
</p>
<note>
<p>
Before you can get accuracy metrics, the <code>Status</code> of the predictor must be <code>ACTIVE</code>,
signifying that training has completed. To get the status, use the <a>DescribePredictor</a> operation.
</p>
</note>

@param getAccuracyMetricsRequest
@return Result of the GetAccuracyMetrics operation returned by the service.
@throws InvalidInputException
        We can't process the request because it includes an invalid value or a value that exceeds the valid
        range.
@throws ResourceNotFoundException
        We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
@throws ResourceInUseException
        The specified resource is in use.
@sample AmazonForecast.GetAccuracyMetrics
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/GetAccuracyMetrics" target="_top">AWS
     API Documentation</a>
aws-java-sdk-forecast/src/main/java/com/amazonaws/services/forecast/AmazonForecastClient.java