---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/concepts/output-data_feature-analysis_feature-importance.md
  - href: en/concepts/output-data_feature-analysis_feature-importance.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# Feature importance

The following types of [feature importance](https://catboost.ai/docs/en/concepts/fstr.md) files are created depending on the task and the execution parameters:
- [Regular feature importance](#per-feature-importance)
- [InternalFeatureImportance](#internal-feature-importance)

## Regular feature importance {#per-feature-importance}

#### Contains

<!-- source: en/_includes/work_src/reusage-formats/regular-feature-importance-desc.md -->
The individual importance values for each of the input features (the default feature importances calculation method for non-ranking metrics).
<!-- endsource: en/_includes/work_src/reusage-formats/regular-feature-importance-desc.md -->

<!-- source: en/_includes/work_src/reusage-formats/regular-feature-importance-type.md -->
Possible values:
- [PredictionValuesChange](https://catboost.ai/docs/en/concepts/fstr.md#regular-feature-importance) for non-ranking metrics
- [LossFunctionChange](https://catboost.ai/docs/en/concepts/fstr.md#regular-feature-importances__lossfunctionchange) for ranking metrics
<!-- endsource: en/_includes/work_src/reusage-formats/regular-feature-importance-type.md -->

#### Format

- The rows are sorted in descending order of the feature importance value.

- Each row contains information related to one feature.

  Format:
  ```
  <feature strength><\t><feature name>
  ```

  - `feature strength` is the value of the of the regular feature importance.
  - `feature name` is the zero-based index of the feature.

  An alphanumeric identifier is used instead if specified in the corresponding `Num` or `Categ` column of the [input data](https://catboost.ai/docs/en/concepts/input-data_column-descfile.md).

  For example, let's assume that the [columns description](https://catboost.ai/docs/en/concepts/input-data_column-descfile.md) file has the following structure:

  ```
  0<\t>Label value<\t>
  1<\t>Num
  2<\t>Num<\t>ratio
  3<\t>Categ
  4<\t>Auxiliary
  5<\t>Num
  ```

  The input [dataset](https://catboost.ai/docs/en/concepts/input-data_values-file.md) file contains the following line:

  ```
  120<\t>80<\t>0.8<\t>rock<\t>some useless information<\t>12
  ```

  The table below shows the compliance between the given feature values and the feature indices.

<!-- source: en/_includes/concepts/feature-interaction-strength_table.md -->
| Feature value       | Feature index or name|
|---------------------|----------------------|
|          80         | 0                    |
|          0.8        | ratio                |
|          rock       | 2                    |
|          12         | 3                    |
<!-- endsource: en/_includes/concepts/feature-interaction-strength_table.md -->

#### Example

```
8.4 <\t> 2
5.5 <\t> 0
2.6 <\t> 3
1.5 <\t> ratio
```

## InternalFeatureImportance {#internal-feature-importance}

#### Contains

<!-- source: en/_includes/work_src/reusage-formats/internal-feature-importance-desc.md -->
The importance values both for each of the input features and for their combinations (if any).
<!-- endsource: en/_includes/work_src/reusage-formats/internal-feature-importance-desc.md -->


#### Format

- The rows are sorted in descending order of the feature importance value.

- Each row contains information related to one feature or a combination of features.

    Format:
    ```
    <feature strength><\t><{feature name 1,.., feature name n} pr<value> tb<value> type<value>
    ```

    - `feature strength` is the value of the internal feature importance.

    - `feature name` is the zero-based index of the feature.

    An alphanumeric identifier is used instead if specified in the corresponding `Num` or `Categ` column of the [input data](https://catboost.ai/docs/en/concepts/input-data_column-descfile.md).

    For example, let's assume that the [columns description](https://catboost.ai/docs/en/concepts/input-data_column-descfile.md) file has the following structure:
    ```
    0<\t>Label value<\t>
    1<\t>Num
    2<\t>Num<\t>ratio
    3<\t>Categ
    4<\t>Auxiliary
    5<\t>Num
    ```

    The input [dataset](https://catboost.ai/docs/en/concepts/input-data_values-file.md) file contains the following line:
    ```
    120<\t>80<\t>0.8<\t>rock<\t>some useless information<\t>12
    ```

    The table below shows the compliance between the given feature values and the feature indices.

    <!-- source: en/_includes/concepts/feature-interaction-strength_table.md -->
    | Feature value       | Feature index or name|
    |---------------------|----------------------|
    |          80         | 0                    |
    |          0.8        | ratio                |
    |          rock       | 2                    |
    |          12         | 3                    |
    <!-- endsource: en/_includes/concepts/feature-interaction-strength_table.md -->

    - `pr` is the prior value.
    - `tb` is the label value border value.
    - `type` is the feature border type.


#### Example

```
8.4<\t>0
5.2<\t>{2, ratio} pr2 tb0 type0
2.6<\t>{2} pr2 tb0 type0
```
