# XaiParams

Configuration parameters for explainability (XAI) analysis in Fiddler models.

XaiParams defines the configuration for explainability analysis, including custom explanation methods and default explanation strategies. These parameters control how feature importance, SHAP values, and other explainability metrics are computed for your model.

This configuration is essential for models that require custom explanation logic or when you want to override the default explanation methods provided by Fiddler's built-in explainability features.

## Examples

Creating XAI parameters with custom methods:

```python
xai_params = XaiParams(
    custom_explain_methods=["custom_shap", "custom_lime", "domain_specific"],
    default_explain_method="custom_shap"
)
```

Creating XAI parameters with only default method:

```python
simple_xai_params = XaiParams(
    default_explain_method="integrated_gradients"
)
```

Creating XAI parameters for multiple explanation strategies:

```python
multi_xai_params = XaiParams(
    custom_explain_methods=[
        "business_rule_explainer",
        "feature_interaction_explainer",
        "counterfactual_explainer"
    ],
    default_explain_method="business_rule_explainer"
)
```

Creating empty XAI parameters (use Fiddler defaults):

```python
default_xai_params = XaiParams()
```

## custom\_explain\_methods *: List\[str]*

User-defined explain\_custom method of the model object defined in package.py

## default\_explain\_method *: str | None*

Default explanation method


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fiddler.ai/api/fiddler-python-client-sdk/schemas/xai-params.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
