## models.ModelRecord


A fitted model as stored: specification, parameters, covariance and data fingerprint.


Usage

``` python
models.ModelRecord(**data)
```


The format (`kind: dazflow.model`, `format: 1`) is fixed in design §5.3. `params` keeps the form's order; `cov_params` is the covariance matrix in that order, row by row. `data` is the [Dataset](Dataset.md#dazflow.Dataset) fingerprint of the target and drivers fitted on (design §5.1.1), checked by [refit](models.refit.md#dazflow.models.refit).


## Methods

| Name | Description |
|----|----|
| [difference()](#difference) | The largest absolute difference between these parameters and `fitted`'s. |
| [from_dict()](#from_dict) | Rebuild a record from [to_dict()](StepResult.md#dazflow.StepResult.to_dict) output. |
| [to_dict()](#to_dict) | A JSON-safe dictionary; non-finite floats are the strings `"NaN"`, `"Infinity"`. |

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


#### difference()


The largest absolute difference between these parameters and `fitted`'s.


Usage

``` python
difference(fitted)
```


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


#### from_dict()


Rebuild a record from [to_dict()](StepResult.md#dazflow.StepResult.to_dict) output.


Usage

``` python
from_dict(data)
```


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


#### to_dict()


A JSON-safe dictionary; non-finite floats are the strings `"NaN"`, `"Infinity"`.


Usage

``` python
to_dict()
```
