## models.InteractionScreen


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


Usage

``` python
models.InteractionScreen(
    features,
    pairs,
    single,
    joint,
)
```


## Attributes


`features: list of str`  

`pairs: list of (str, str)`  

`single: list of list of float`  
`single[i][j]`: on split `i`, the loss from shuffling feature `j` alone, `L_A`.

`joint: list of list of float`  
`joint[i][k]`: on split `i`, the loss from shuffling pair [k](models.TargetEncoding.md#prospicio.models.TargetEncoding.k)'s two features together, `L_AB`.


## Attributes

| Name | Description |
|----|----|
| [by_split](#by_split) | `L_A + L_B - L_AB` per split and pair. |
| [std_error](#std_error) | The splits' standard error of each pair's strength. |
| [strength](#strength) | `L_A + L_B - L_AB` averaged over the splits, per pair: about 0 |

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


#### by_split


`L_A + L_B - L_AB` per split and pair.


`by_split`


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


#### std_error


The splits' standard error of each pair's strength.


`std_error`


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


#### strength


`L_A + L_B - L_AB` averaged over the splits, per pair: about 0


`strength`


when neither feature interacts with anything, positive when they interact with each other or with a common third feature.


## Methods

| Name | Description |
|----|----|
| [combine()](#combine) | One result from several over the same features and pairs. |
| [table()](#table) | One row per pair, strongest first: [a](distributions.Beta.md#prospicio.distributions.Beta.a), [b](pricing.Mbbefd.md#prospicio.pricing.Mbbefd.b), [strength](models.InteractionScreen.md#prospicio.models.InteractionScreen.strength), |

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


#### combine()


One result from several over the same features and pairs.


Usage

``` python
combine(results)
```


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


#### table()


One row per pair, strongest first: [a](distributions.Beta.md#prospicio.distributions.Beta.a), [b](pricing.Mbbefd.md#prospicio.pricing.Mbbefd.b), [strength](models.InteractionScreen.md#prospicio.models.InteractionScreen.strength),


Usage

``` python
table()
```


[std_error](models.Comparison.md#prospicio.models.Comparison.std_error), and the mean losses `loss_a`, `loss_b` and `loss_ab`, as a list of dicts.
