{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-forecast/json-schema/amazon-forecast-get-accuracy-metrics-response-schema.json",
  "title": "GetAccuracyMetricsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-forecast-operations-api-openapi.yml#/components/schemas/GetAccuracyMetricsResponse",
  "type": "object",
  "properties": {
    "PredictorEvaluationResults": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EvaluationResult"
      },
      "description": "An array of results from evaluating the predictor."
    },
    "IsAutoPredictor": {
      "type": "boolean",
      "description": "Whether the predictor was created with CreateAutoPredictor."
    },
    "AutoMLOverrideStrategy": {
      "type": "string",
      "enum": [
        "LatencyOptimized",
        "AccuracyOptimized"
      ],
      "description": "The LatencyOptimized AutoML override strategy is only available in private beta. Contact Amazon Web Services 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."
    },
    "OptimizationMetric": {
      "type": "string",
      "enum": [
        "WAPE",
        "RMSE",
        "AverageWeightedQuantileLoss",
        "MASE",
        "MAPE"
      ],
      "description": "The accuracy metric used to optimize the predictor."
    }
  },
  "$defs": {
    "ErrorMetric": {
      "type": "object",
      "properties": {
        "ForecastType": {
          "type": "string",
          "description": "The Forecast type used to compute WAPE, MAPE, MASE, and RMSE."
        },
        "WAPE": {
          "type": "number",
          "description": "The weighted absolute percentage error (WAPE)."
        },
        "RMSE": {
          "type": "number",
          "description": "The root-mean-square error (RMSE)."
        },
        "MASE": {
          "type": "number",
          "description": "The Mean Absolute Scaled Error (MASE)"
        },
        "MAPE": {
          "type": "number",
          "description": "The Mean Absolute Percentage Error (MAPE)"
        }
      }
    },
    "EvaluationResult": {
      "type": "object",
      "properties": {
        "AlgorithmArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the algorithm that was evaluated."
        },
        "TestWindows": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WindowSummary"
          },
          "description": "The array of test windows used for evaluating the algorithm. The NumberOfBacktestWindows from the EvaluationParameters object determines the number of windows in the array."
        }
      }
    },
    "Metrics": {
      "type": "object",
      "properties": {
        "RMSE": {
          "type": "number",
          "description": "The root-mean-square error (RMSE)."
        },
        "WeightedQuantileLosses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WeightedQuantileLoss"
          },
          "description": "An array of weighted quantile losses. Quantiles divide a probability distribution into regions of equal probability. The distribution in this case is the loss function."
        },
        "ErrorMetrics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ErrorMetric"
          },
          "description": "Provides detailed error metrics for each forecast type. Metrics include root-mean square-error (RMSE), mean absolute percentage error (MAPE), mean absolute scaled error (MASE), and weighted average percentage error (WAPE)."
        },
        "AverageWeightedQuantileLoss": {
          "type": "number",
          "description": "The average value of all weighted quantile losses."
        }
      }
    },
    "WeightedQuantileLoss": {
      "type": "object",
      "properties": {
        "Quantile": {
          "type": "number",
          "description": "The quantile. Quantiles divide a probability distribution into regions of equal probability. For example, if the distribution was divided into 5 regions of equal probability, the quantiles would be 0.2, 0.4, 0.6, and 0.8."
        },
        "LossValue": {
          "type": "number",
          "description": "The difference between the predicted value and the actual value over the quantile, weighted (normalized) by dividing by the sum over all quantiles."
        }
      }
    },
    "WindowSummary": {
      "type": "object",
      "properties": {
        "TestWindowStart": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp that defines the start of the window."
        },
        "TestWindowEnd": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp that defines the end of the window."
        },
        "ItemCount": {
          "type": "integer",
          "description": "The number of data points within the window."
        },
        "EvaluationType": {
          "type": "string",
          "enum": [
            "SUMMARY",
            "COMPUTED"
          ],
          "description": "The type of evaluation. SUMMARY - The average metrics across all windows. COMPUTED - The metrics for the specified window."
        },
        "Metrics": {
          "$ref": "#/$defs/Metrics"
        }
      }
    }
  }
}