## evaluation.evaluate()


Refit [model](models.ModelSpec.md#dazflow.models.ModelSpec.model) at every origin of `splitter` and score its forecasts.


Usage

``` python
evaluation.evaluate(
    model,
    y,
    X=None,
    *,
    splitter=None,
    metrics=DEFAULT_METRICS,
    levels=DEFAULT_LEVELS
)
```


## Parameters


`model: Any`  
A model form (`models.get("ols")()`), its key, or a [ModelSpec](models.ModelSpec.md#dazflow.models.ModelSpec).

`y: pd.Series`  
The target and the drivers, as [fit](models.ModelForm.md#dazflow.models.ModelForm.fit) takes them. The forecast at each origin uses the drivers' actual values over the test periods.

`X: pd.Series`  
The target and the drivers, as [fit](models.ModelForm.md#dazflow.models.ModelForm.fit) takes them. The forecast at each origin uses the drivers' actual values over the test periods.

`splitter: Any = None`  
A splitter, or its key; default `expanding` with one-step folds.

`metrics: Sequence[Any] = DEFAULT_METRICS`  
Metrics or their keys. MASE divides each fold's errors by that fold's training scale; coverage scores the interval at its `level`, which must be among `levels`.

`levels: Sequence[float] = DEFAULT_LEVELS`  
The interval levels forecast at every origin.
