Skip to main content

explainabilities

Creates, updates, deletes, gets or lists an explainabilities resource.

Overview

Nameexplainabilities
TypeResource
Idaws.forecast.explainabilities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)When the Explainability resource was created.
data_sourceobjectThe source of your data, an Identity and Access Management (IAM) role that allows Amazon Forecast to access the data and, optionally, an Key Management Service (KMS) key.
enable_visualizationbooleanWhether the visualization was enabled for the Explainability resource.
end_date_timestringIf TimePointGranularity is set to SPECIFIC, the last time point in the Explainability. (pattern: <code>^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$</code>)
estimated_time_remaining_in_minutesinteger (int64)The estimated time remaining in minutes for the CreateExplainability job to complete.
explainability_arnstringThe Amazon Resource Name (ARN) of the Explainability. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>)
explainability_configobjectThe configuration settings that define the granularity of time series and time points for the Explainability.
explainability_namestringThe name of the Explainability. (pattern: <code>^[a-zA-Z][a-zA-Z0-9_]*</code>)
last_modification_timestring (date-time)The last time the resource was modified. The timestamp depends on the status of the job: CREATE_PENDING - The CreationTime. CREATE_IN_PROGRESS - The current timestamp. CREATE_STOPPING - The current timestamp. CREATE_STOPPED - When the job stopped. ACTIVE or CREATE_FAILED - When the job finished or failed.
messagestringIf an error occurred, a message about the error.
resource_arnstringThe Amazon Resource Name (ARN) of the Predictor or Forecast used to create the Explainability resource. (pattern: <code>arn:([a-z\d-]+):forecast:.:.:.+</code>)
schemaobjectDefines the fields of a dataset.
start_date_timestringIf TimePointGranularity is set to SPECIFIC, the first time point in the Explainability. (pattern: <code>^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$</code>)
statusstringThe status of the Explainability resource. States include: ACTIVE CREATE_PENDING, CREATE_IN_PROGRESS, CREATE_FAILED CREATE_STOPPING, CREATE_STOPPED DELETE_PENDING, DELETE_IN_PROGRESS, DELETE_FAILED

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_explainabilityselectregionDescribes an Explainability resource created using the CreateExplainability operation.
list_explainabilitiesselectregionReturns a list of Explainability resources created using the CreateExplainability operation. This operation returns a summary for each Explainability. You can filter the list using an array of Filter objects. To retrieve the complete set of properties for a particular Explainability resource, use the ARN with the DescribeExplainability operation.
create_explainabilityinsertregion, ExplainabilityName, ResourceArn, ExplainabilityConfigExplainability 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. Amazon Forecast uses a metric called Impact scores to quantify the relative impact of each attribute and determine whether they increase or decrease forecast values. To enable Forecast Explainability, your predictor must include at least one of the following: related time series, item metadata, or additional datasets like Holidays and the Weather Index. CreateExplainability accepts either a Predictor ARN or Forecast ARN. To receive aggregated Impact scores for all time series and time points in your datasets, provide a Predictor ARN. To receive Impact scores for specific time series and time points, provide a Forecast ARN. CreateExplainability with a Predictor ARN You can only have one Explainability resource per predictor. If you already enabled ExplainPredictor in CreateAutoPredictor, that predictor already has an Explainability resource. The following parameters are required when providing a Predictor ARN: ExplainabilityName - A unique name for the Explainability. ResourceArn - The Arn of the predictor. TimePointGranularity - Must be set to “ALL”. TimeSeriesGranularity - Must be set to “ALL”. Do not specify a value for the following parameters: DataSource - Only valid when TimeSeriesGranularity is “SPECIFIC”. Schema - Only valid when TimeSeriesGranularity is “SPECIFIC”. StartDateTime - Only valid when TimePointGranularity is “SPECIFIC”. EndDateTime - Only valid when TimePointGranularity is “SPECIFIC”. CreateExplainability with a Forecast ARN You can specify a maximum of 50 time series and 500 time points. The following parameters are required when providing a Predictor ARN: ExplainabilityName - A unique name for the Explainability. ResourceArn - The Arn of the forecast. TimePointGranularity - Either “ALL” or “SPECIFIC”. TimeSeriesGranularity - Either “ALL” or “SPECIFIC”. If you set TimeSeriesGranularity to “SPECIFIC”, you must also provide the following: DataSource - The S3 location of the CSV file specifying your time series. Schema - The Schema defines the attributes and attribute types listed in the Data Source. If you set TimePointGranularity to “SPECIFIC”, you must also provide the following: StartDateTime - The first timestamp in the range of time points. EndDateTime - The last timestamp in the range of time points.
delete_explainabilitydeleteregionDeletes an Explainability resource. You can delete only predictor that have a status of ACTIVE or CREATE_FAILED. To get the status, use the DescribeExplainability operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes an Explainability resource created using the CreateExplainability operation.

SELECT
creation_time,
data_source,
enable_visualization,
end_date_time,
estimated_time_remaining_in_minutes,
explainability_arn,
explainability_config,
explainability_name,
last_modification_time,
message,
resource_arn,
schema,
start_date_time,
status
FROM aws.forecast.explainabilities
WHERE region = '{{ region }}' -- required
;

INSERT examples

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. Amazon Forecast uses a metric called Impact scores to quantify the relative impact of each attribute and determine whether they increase or decrease forecast values. To enable Forecast Explainability, your predictor must include at least one of the following: related time series, item metadata, or additional datasets like Holidays and the Weather Index. CreateExplainability accepts either a Predictor ARN or Forecast ARN. To receive aggregated Impact scores for all time series and time points in your datasets, provide a Predictor ARN. To receive Impact scores for specific time series and time points, provide a Forecast ARN. CreateExplainability with a Predictor ARN You can only have one Explainability resource per predictor. If you already enabled ExplainPredictor in CreateAutoPredictor, that predictor already has an Explainability resource. The following parameters are required when providing a Predictor ARN: ExplainabilityName - A unique name for the Explainability. ResourceArn - The Arn of the predictor. TimePointGranularity - Must be set to “ALL”. TimeSeriesGranularity - Must be set to “ALL”. Do not specify a value for the following parameters: DataSource - Only valid when TimeSeriesGranularity is “SPECIFIC”. Schema - Only valid when TimeSeriesGranularity is “SPECIFIC”. StartDateTime - Only valid when TimePointGranularity is “SPECIFIC”. EndDateTime - Only valid when TimePointGranularity is “SPECIFIC”. CreateExplainability with a Forecast ARN You can specify a maximum of 50 time series and 500 time points. The following parameters are required when providing a Predictor ARN: ExplainabilityName - A unique name for the Explainability. ResourceArn - The Arn of the forecast. TimePointGranularity - Either “ALL” or “SPECIFIC”. TimeSeriesGranularity - Either “ALL” or “SPECIFIC”. If you set TimeSeriesGranularity to “SPECIFIC”, you must also provide the following: DataSource - The S3 location of the CSV file specifying your time series. Schema - The Schema defines the attributes and attribute types listed in the Data Source. If you set TimePointGranularity to “SPECIFIC”, you must also provide the following: StartDateTime - The first timestamp in the range of time points. EndDateTime - The last timestamp in the range of time points.

INSERT INTO aws.forecast.explainabilities (
ExplainabilityName,
ResourceArn,
ExplainabilityConfig,
DataSource,
Schema,
EnableVisualization,
StartDateTime,
EndDateTime,
Tags,
region
)
SELECT
'{{ ExplainabilityName }}' /* required */,
'{{ ResourceArn }}' /* required */,
'{{ ExplainabilityConfig }}' /* required */,
'{{ DataSource }}',
'{{ Schema }}',
{{ EnableVisualization }},
'{{ StartDateTime }}',
'{{ EndDateTime }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
explainability_arn
;

DELETE examples

Deletes an Explainability resource. You can delete only predictor that have a status of ACTIVE or CREATE_FAILED. To get the status, use the DescribeExplainability operation.

DELETE FROM aws.forecast.explainabilities
WHERE region = '{{ region }}' --required
;