## models.PermutationImportance


The result of [permutation_importance](models.permutation_importance.md#prospicio.models.permutation_importance).


Usage

``` python
models.PermutationImportance(
    features,
    by_split,
    base,
)
```


## Attributes


`features: list of str`  
The labels of the features or groups shuffled.

`by_split: list of list of float`  
`by_split[i][j]`: on split `i`, the increase in the score (a loss) when feature `j` is shuffled, averaged over the repeats.

`base: list of float`  
The score on each split with nothing shuffled.


## Attributes

| Name | Description |
|----|----|
| [importance](#importance) | The mean increase over the splits, per feature. |
| [relative](#relative) | Importance as a percent of the largest, the monograph's scale. |
| [std_error](#std_error) | The splits' standard deviation over the square root of their |

------------------------------------------------------------------------


#### importance


The mean increase over the splits, per feature.


`importance`


------------------------------------------------------------------------


#### relative


Importance as a percent of the largest, the monograph's scale.


`relative`


------------------------------------------------------------------------


#### std_error


The splits' standard deviation over the square root of their


`std_error`


number, per feature (NaN for one split).


## Methods

| Name | Description |
|----|----|
| [combine()](#combine) | One result from several over the same features, such as one per |
| [table()](#table) | One row per feature, most important first: `feature`, |

------------------------------------------------------------------------


#### combine()


One result from several over the same features, such as one per


Usage

``` python
combine(results)
```


fold computed with a design built differently in each fold.


------------------------------------------------------------------------


#### table()


One row per feature, most important first: `feature`,


Usage

``` python
table()
```


[importance](models.PermutationImportance.md#prospicio.models.PermutationImportance.importance), [std_error](models.Comparison.md#prospicio.models.Comparison.std_error) and [relative](models.PartialDependence.md#prospicio.models.PartialDependence.relative), as a list of dicts.
