> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AutoExplain.max_depth

> *getter setter* AutoExplain.max\_depth: [int](https://docs.python.org/3/builtins/functions.html#int)

The maximum number of hierarchies the algorithm drills down through.

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> cube.auto_explain.max_depth
15
```

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> cube.auto_explain.max_depth = 5
```

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> cube.auto_explain.max_depth
5
```
