Struct aws_sdk_forecast::client::fluent_builders::GetAccuracyMetrics
source · [−]pub struct GetAccuracyMetrics { /* private fields */ }Expand description
Fluent builder constructing a request to GetAccuracyMetrics.
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.
Implementations
sourceimpl GetAccuracyMetrics
impl GetAccuracyMetrics
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetAccuracyMetrics, AwsResponseRetryClassifier>, SdkError<GetAccuracyMetricsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetAccuracyMetrics, AwsResponseRetryClassifier>, SdkError<GetAccuracyMetricsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetAccuracyMetricsOutput, SdkError<GetAccuracyMetricsError>>
pub async fn send(
self
) -> Result<GetAccuracyMetricsOutput, SdkError<GetAccuracyMetricsError>>
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.
sourcepub fn predictor_arn(self, input: impl Into<String>) -> Self
pub fn predictor_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the predictor to get metrics for.
sourcepub fn set_predictor_arn(self, input: Option<String>) -> Self
pub fn set_predictor_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the predictor to get metrics for.
Trait Implementations
sourceimpl Clone for GetAccuracyMetrics
impl Clone for GetAccuracyMetrics
sourcefn clone(&self) -> GetAccuracyMetrics
fn clone(&self) -> GetAccuracyMetrics
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more