fit

Model.fit(model)[source]

Fit a regression model on the current terms specified by model.

Parameters

modelnp.array(1d)

The current model terms.

Returns

fitModelResults

An object of type model results containing the optimization metric and the estimated coefficients.