'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`.'

def grad(self, params):

    raise NotImplementedError
