# ClarifyExplainerConfigProperty

The configuration parameters for the SageMaker Clarify explainer.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const clarifyExplainerConfigProperty: sagemaker.CfnEndpointConfig.ClarifyExplainerConfigProperty = {
  shapConfig: {
    shapBaselineConfig: {
      mimeType: 'mimeType',
      shapBaseline: 'shapBaseline',
      shapBaselineUri: 'shapBaselineUri',
    },

    // the properties below are optional
    numberOfSamples: 123,
    seed: 123,
    textConfig: {
      granularity: 'granularity',
      language: 'language',
    },
    useLogit: false,
  },

  // the properties below are optional
  enableExplanations: 'enableExplanations',
  inferenceConfig: {
    contentTemplate: 'contentTemplate',
    featureHeaders: ['featureHeaders'],
    featuresAttribute: 'featuresAttribute',
    featureTypes: ['featureTypes'],
    labelAttribute: 'labelAttribute',
    labelHeaders: ['labelHeaders'],
    labelIndex: 123,
    maxPayloadInMb: 123,
    maxRecordCount: 123,
    probabilityAttribute: 'probabilityAttribute',
    probabilityIndex: 123,
  },
};
```

## Properties

- `enableExplanations`: string — A JMESPath boolean expression used to filter which records to explain.

  Explanations are activated by default. See [`EnableExplanations`](https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable) for additional information.

- `inferenceConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.ClarifyInferenceConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.ClarifyInferenceConfigProperty.html) — The inference configuration parameter for the model container.

- `shapConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.ClarifyShapConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.ClarifyShapConfigProperty.html) (required) — The configuration for SHAP analysis.
