## models.mean_deviance()


Weighted mean deviance `sum(w d(y, mu)) / sum(w)` of a family (the


Usage


``` python
models.mean_deviance(
    family,
    y,
    mu,
    weights=None,
    theta=None,
    power=None,
)
```


number of rows when there are no weights): the score to compare models on held-out data.


## Parameters


`family: str`  

`y: list of float`  

`mu: list of float`  

`weights: list of float = None`  

`theta: float = None`  

`power: float = None`  


## Returns


`float`  


## Examples

``` python
>>> from prospicio.models import mean_deviance
>>> mean_deviance("gaussian", [1.0, 3.0], [2.0, 2.0])
```

1.0
