3.9.3.1.6.1.3. statsmodels.regression.mixed_linear_model.Penalty.grad

Penalty.grad(params)[source]

The gradient of a penalty function.

Parameters:

params : array-like

A vector of parameters

Returns:

The gradient of the penalty with respect to each element in

params.