## models.ModelForm


Base class of the built-in forms: holds the validated [Config](Config.md#dazflow.Config), checks the data.


Usage

``` python
models.ModelForm(
    config=None,
    /,
    **params,
)
```


A subclass sets [Config](Config.md#dazflow.Config), [drivers](Dataset.drivers.md#dazflow.Dataset.drivers) (whether it takes driver series) and `_fit(y, X, spec) -> FittedModel`.


## Methods

| Name | Description |
|----|----|
| [fit()](#fit) | Fit to `y` (a float series on a `PeriodIndex`) and drivers `X` on the same periods. |

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


#### fit()


Fit to `y` (a float series on a `PeriodIndex`) and drivers `X` on the same periods.


Usage

``` python
fit(y, X=None)
```
